Commit b7b83578 authored by 时昊's avatar 时昊

feat:屏蔽休眠初始化函数

parent 93227110
...@@ -66,7 +66,7 @@ static void Power_KL30_Init(void) ...@@ -66,7 +66,7 @@ static void Power_KL30_Init(void)
Menu_User_Init(); Menu_User_Init();
Can_Init(); Can_Init();
Protocol_KL30_Wakeup_Init(); Protocol_KL30_Wakeup_Init();
RTE_DEEPSLEEP_GPIO_Interrupt_Enable(KL15_AD_IN, Trigger_Rising); //RTE_DEEPSLEEP_GPIO_Interrupt_Enable(KL15_AD_IN, Trigger_Rising);
} }
static void Power_Wakeup_Init(void) static void Power_Wakeup_Init(void)
...@@ -90,7 +90,7 @@ static void Power_Wakeup_Init(void) ...@@ -90,7 +90,7 @@ static void Power_Wakeup_Init(void)
Menu_User_WAKEUP(); Menu_User_WAKEUP();
Can_Init(); Can_Init();
Protocol_KL30_Wakeup_Init(); Protocol_KL30_Wakeup_Init();
RTE_DEEPSLEEP_GPIO_Interrupt_Enable(KL15_AD_IN, Trigger_Rising); //RTE_DEEPSLEEP_GPIO_Interrupt_Enable(KL15_AD_IN, Trigger_Rising);
} }
static void Power_LVP_Init(void) static void Power_LVP_Init(void)
...@@ -105,6 +105,7 @@ static void Power_OVP_Init(void) ...@@ -105,6 +105,7 @@ static void Power_OVP_Init(void)
static void Power_IG_OFF_Init(void) static void Power_IG_OFF_Init(void)
{ {
Line_In_KL15_OFF_Init(); Line_In_KL15_OFF_Init();
RTE_GPIO_Set_Level(Blacklight_PWM, 0);
} }
static void Power_IG_ON_Init(void) static void Power_IG_ON_Init(void)
...@@ -113,6 +114,7 @@ static void Power_IG_ON_Init(void) ...@@ -113,6 +114,7 @@ static void Power_IG_ON_Init(void)
Line_In_KL15_ON_Init(); Line_In_KL15_ON_Init();
Telltales_KL15_Init(); Telltales_KL15_Init();
Fuel_KL15_Init(); Fuel_KL15_Init();
RTE_GPIO_Set_Level(Blacklight_PWM, 1);
} }
static void Power_Sleep_Init(void) static void Power_Sleep_Init(void)
...@@ -157,16 +159,16 @@ static Power_Status_em Power_Stay_OFF(void) ...@@ -157,16 +159,16 @@ static Power_Status_em Power_Stay_OFF(void)
} }
else else
{ {
if ((Common_GetIgnOffTime() < 1000)) if ((Common_GetIgnOffTime() < 10000))
{ {
u8PowerSts = EM_IGN_OFF; u8PowerSts = EM_IGN_OFF;
} }
else else
{ {
//igoff大于1s且下15电才进休眠,否则一直保持在igoff状态 //igoff大于1s且下15电才进休眠,否则一直保持在igoff状态
if(Sys_Read_KL15_Voltage() < 5000) //if(Sys_Read_KL15_Voltage() < 5000)
{ {
u8PowerSts = EM_IGN_Sleep_Init; //u8PowerSts = EM_IGN_Sleep_Init;
} }
} }
} }
...@@ -202,10 +204,10 @@ static Power_Status_em Power_Stay_Protect(void) ...@@ -202,10 +204,10 @@ static Power_Status_em Power_Stay_Protect(void)
} }
//进入异常电压,电源库里直接将15电等于0,则直接退出,状态是igoff,下15则进入休眠 //进入异常电压,电源库里直接将15电等于0,则直接退出,状态是igoff,下15则进入休眠
if ( SYS_OPR_STAT_IGN_OFF ) // if ( SYS_OPR_STAT_IGN_OFF )
{ // {
break; // 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