Commit f4bcc93a authored by 郑萍's avatar 郑萍

🐞 fix:高低压保护修改以及休眠之后关闭蜂鸣器和交互指示灯

parent 257abcfb
......@@ -77,7 +77,7 @@ void Interact_Light_Process(void)
}
else
{
TimerM_PWM_set_duty(TIMERM_COUNTER0, TIMERM_CHD, 0);
TimerM_PWM_set_duty(TIMERM_COUNTER0, TIMERM_CHD, 1000);
}
}
uint8_t Get_Interact_Light_State(void)
......
......@@ -189,6 +189,8 @@ static Power_Status_em Power_Stay_Protect(void)
{
BU98R10_Shutdown( );
TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, 0);
TimerM_PWM_set_duty(TIMERM_COUNTER0, TIMERM_CHD, 1000);
RTE_GPIO_Set_Level(RTE_GPIO_PORT04_PIN01, RTE_GPIO_LEVEL_LOW); // OUT_EN_1
CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Disable);
}
u8PowerSts = EM_IGN_OFF_Init;
......
......@@ -11,9 +11,9 @@
#define u16EXIT_LOW_Y_RANGE 10000U
#define u16EXIT_HIGH_Y_RANGE 16000U
#define u16ENTER_HIGH_Y_RANGE 17500U
#define u16EXIT_HIGH_N_RANGE 18000U
#define u16ENTER_HIGH_N_RANGE 18500U
#define u16ENTER_HIGH_Y_RANGE 16500U
#define u16EXIT_HIGH_N_RANGE 17500U
#define u16ENTER_HIGH_N_RANGE 18000U
#define u16Top_Vol 0xffffu
......@@ -36,7 +36,7 @@ static const monitorlib_uint16_t SysFun_Range [ 26u ] = {
u16ENTER_HIGH_N_RANGE,
u16Top_Vol,
5000,
2500,
50u,
u16Base_Vol,
......
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