Commit dfe4d3c8 authored by 张金硕's avatar 张金硕

🐞 fix:修改630和屏的上下电时序

parent a656a8ce
......@@ -214,15 +214,16 @@ void AMT630H_RstCtrl(void)
RTE_GPIO_Set_Level(STBYB_LCD_MCU, 0);//lcd
RTE_GPIO_Set_Level(MCU_RSTB_LCD, 0);//lcd
Delay_Time_Ctrl(10);
RTE_GPIO_Set_Level(VCC1V2_AMT_EN, 1);
RTE_GPIO_Set_Level(VCC_33_EN_MCU, 1);
Delay_Time_Ctrl(15);
RTE_GPIO_Set_Level(VCC_33_EN_MCU, 1);
Delay_Time_Ctrl(45);
RTE_GPIO_Set_Level(VCC1V2_AMT_EN, 1);
Delay_Time_Ctrl(15);
RTE_GPIO_Set_Level(x1530_EN_MCU, 1);
Delay_Time_Ctrl(55);
RTE_GPIO_Set_Level(MCU_RSTB_LCD, 1);
Delay_Time_Ctrl(15);
RTE_GPIO_Set_Level(STBYB_LCD_MCU, 1);
Delay_Time_Ctrl(10);
RTE_GPIO_Set_Level(x1530_EN_MCU, 1);//1530
RTE_GPIO_Set_Level(STBYB_LCD_MCU, 1);//1530
Delay_Time_Ctrl(30);
}
void Amt630hInit(void)
......@@ -293,10 +294,11 @@ void Amt630hInit(void)
void AMT630H_Sleep(void)
{
RTE_GPIO_Set_Level(STBYB_LCD_MCU, 0);
Delay_Time_Ctrl(30);
Delay_Time_Ctrl(110);
RTE_GPIO_Set_Level(VCC_33_EN_MCU, 0);
RTE_GPIO_Set_Level(VCC1V2_AMT_EN, 0);
RTE_GPIO_Set_Level(MCU_RSTB_LCD, 0);
RTE_GPIO_Set_Level(x1530_EN_MCU, 0);
}
static void AMT630H_AliveCounterMonitor(void)
......
......@@ -168,8 +168,8 @@ static void Power_Sleep_Init(void)
TMM1_Stop();
TMM_All_Stop();
RTE_ADC_DeInit();
Gpio_Init(Gpio_Sleep_Init);
AMT630H_Sleep();
Gpio_Init(Gpio_Sleep_Init);
Analog_Signal_Conv_Stop();
RTE_UART_Sleep_Init(UART_CH2);
CGC_HSI_CFG_AS_FCLK(); /* 配置时钟生成控制器(cgc)以将内部高速振荡器(HSI)作为CPU系统时钟(FCLK)以及可能的其他硬件电路的时钟源。 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment