Commit 3d5d81e8 authored by 李俭双's avatar 李俭双

🐞 fix:IGOFF判断唤醒脚电平为低才允许休眠,规避黑屏风险,解决56654禅道问题,但存在不休眠的风险

parent 795efd1c
......@@ -236,10 +236,6 @@ static void Power_Sleep_Init(void)
LED_Driver_Service();
Analog_Signal_Conv_Stop();
UART_DeInit(UART0);
//if(RTE_GPIO_Get_Level(WAKEUP_KL15_In) == 0)
{
RTE_DEEPSLEEP_Enable();
}
}
......@@ -351,11 +347,16 @@ static Power_Status_em Power_Stay_Protect(void)
static Power_Status_em Power_Stay_Sleep(void)
{
Power_Status_em u8PowerSts = EM_IGN_Sleep;
while (1)
{
RTE_WDT_Clear();
if (RTE_GPIO_Get_Level(WAKEUP_KL15_In))/* KL15 */
if(RTE_GPIO_Get_Level(WAKEUP_KL15_In) == 0)
{
RTE_DEEPSLEEP_Enable();
}
else //(RTE_GPIO_Get_Level(WAKEUP_KL15_In))/* KL15 */
{
u8PowerSts = EM_IGN_Wakeup;
break;
......
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