Commit 3edaee91 authored by hu's avatar hu

调整OFF档静态电流

parent fe6c93ad
......@@ -133,29 +133,33 @@ Power_Status_t Power_KL30_Init ( void )
void Power_Sleep_Init(void)
{
//TimerB_PWM_Channel_Sleep(TIMERB_2_CH10);
//TimerB_PWM_Channel_Sleep(TIMERB_1_CH10);
VCC12V0_OUT_EN = 1u; /*12V 电源使能*/
VCC05V0_OUT_EN = 1u; /*外设5V 电源使能*/
D1530_EN_MCU_OUT = 1u; /*1530 使能*/
//BL_ACC_EN = 1U; /*8867 使能*/
Fuel_VCC05V_OUT_EN = 1u ; /*燃油电源 使能*/
AIR_5V_OUT_EN = 1u; /*气压 5V*/
ACC5V_LED_PWM_MCU = 1u;
BUZZER_ACC_OUT_EN = 1u;
IS31_Shutdown();
/*数据*/
Speed_Sleep_Init();
Tacho_Sleep_Init();
Coolant_Sleep_Init();
UART_Sleep_Init();
/*燃油库睡眠前需要调用 ----20220503----*/
Fuel_User_Sleep_Init();
/*外设*/
Seg_Display_OFF();
IS31_Shutdown();
UART_Sleep_Init();
Buzzer_Shutdown(); /*蜂鸣器*/
TimerB_PWM_Channel_Sleep(TIMERB_0_CH15);
TimerB_PWM_Channel_Sleep(TIMERB_2_CH1);
TimerB_PWM_Channel_Sleep(TIMERB_2_CH7);
TimerB_PWM_Channel_Sleep(TIMERB_1_CH15);
VCC12V0_OUT_EN = 0u; /*12V 电源使能*/
VCC05V0_OUT_EN = 0u; /*外设5V 电源使能*/
D1530_EN_MCU_OUT = 0u; /*1530 使能*/
//BL_ACC_EN = 1U; /*8867 使能*/
Fuel_VCC05V_OUT_EN = 0u ; /*燃油电源 使能*/
AIR_5V_OUT_EN = 0u; /*气压 5V*/
ACC5V_LED_PWM_MCU = 0u;
BUZZER_ACC_OUT_EN = 0u;
GPIO_Init(GPIO_SLEEP_MODE );
}
......
......@@ -28,7 +28,7 @@ void None_NM_Service(void)
}
else
{
if (NM_Idle_Timer <= 1600000ul) /*休眠唤醒*/
if (NM_Idle_Timer <= 160000ul) /*休眠唤醒*/
{
NM_Idle_Timer++;
}
......
......@@ -84,7 +84,10 @@ static uint32_t LOW_VOLTAGE;
static uint32_t TPMS_TEST_OFF_TIME;
static uint32_t Menu_FacDea_Time;
#pragma ghs section bss=".myNonInitArea"
static uint32_t Menu_Off_Time;
#pragma ghs section bss=default
/*每次唤醒调用*/
void Common_DataInit(void)
......@@ -129,7 +132,7 @@ void Common_DataInit(void)
TPMS_TEST_OFF_TIME = 0x00u;
Menu_FacDea_Time = 0x00u;
Menu_Off_Time = 0x00u;
//Menu_Off_Time = 0x00u;
}
/*以下由各个处理模块按需调用*/
......
......@@ -533,14 +533,14 @@ static void TimerB_VehFreOut_Init(void)
//TimerB_PWM_Channel_Start(TIMERB_2_CH10 );
//车速2
TimerB_PWM_Channel_Init(TIMERB_2_CH13, TIMERB_CLOCK_0, TIMERB_HIGH);
TimerB_PWM_Channel_Fre_Set(TIMERB_2_CH13, 1U, 0u);
TimerB_PWM_Channel_Start(TIMERB_2_CH13);
//TimerB_PWM_Channel_Init(TIMERB_2_CH13, TIMERB_CLOCK_0, TIMERB_HIGH);
//TimerB_PWM_Channel_Fre_Set(TIMERB_2_CH13, 1U, 0u);
//TimerB_PWM_Channel_Start(TIMERB_2_CH13);
//车速3
TimerB_PWM_Channel_Init(TIMERB_2_CH15, TIMERB_CLOCK_0, TIMERB_HIGH);
TimerB_PWM_Channel_Fre_Set(TIMERB_2_CH15, 1U, 0u);
TimerB_PWM_Channel_Start(TIMERB_2_CH15);
//TimerB_PWM_Channel_Init(TIMERB_2_CH15, TIMERB_CLOCK_0, TIMERB_HIGH);
//TimerB_PWM_Channel_Fre_Set(TIMERB_2_CH15, 1U, 0u);
//TimerB_PWM_Channel_Start(TIMERB_2_CH15);
}
/*转速频率输出PWM初始化*/
static void TimerB_EngFreOut_Init(void)
......
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