Commit 82d12696 authored by 时昊's avatar 时昊

修改进入高低压后,60秒,关闭指示灯,断码,外发

parent d1308f7b
......@@ -467,18 +467,27 @@ void Power_KL15_Init(void)
void Sys_Stop_Task(void)
{
static uint8_t Delaycnt;
static uint8_t i;
/*关闭所有外设功能,只保留AD采集,电源状态切换*/
{
/*关闭电机待添加*/
/*关闭扬声器待添加*/
BackLight_Sleep_Init( ); /*关闭背光*/
for(i = 0; i < 36; i++)
{
LED_Driver_Channel_Set(0, i, 0);
}
LED_Driver_Scan_Refresh();
CAN_TX_SetEnable(0);
BU98R10_Shutdown();
}
Delaycnt = 0u;
for ( ;; )
{
/*喂狗*/
WDT_Clear( );
LED_Driver_Service();
/*一定周期调用2ms*/
Delay_Ms(2U);
......@@ -497,6 +506,8 @@ void Sys_Stop_Task(void)
// StepMotor_Reset(0u);
// StepMotor_Limit_Init();
RTE_PWM_Start( );
CAN_TX_SetEnable(0x55);
Power_Wakeup_Init();
return;
}
}
......
......@@ -397,7 +397,7 @@ static void System_Fun_Process(void)
SysFun_KL30Monitor.DebounceTimer++;
DebpounceTimer = 0u;
/*计时累计时间1000*2ms*/
if ( SysFun_KL30Monitor.DebounceTimer >= 1000U )/*40202-8*/
if ( SysFun_KL30Monitor.DebounceTimer >= 30000U )/*40202-8*/
{
SysFun_KL30Monitor.DebounceTimer = 0U;
......@@ -432,6 +432,10 @@ static void System_Fun_Process(void)
}
}
if ((SysFun_KL30Monitor.FinalSts == 1u) || (SysFun_KL30Monitor.FinalSts >= 7u))
{
SysFun_KL30Monitor.FinalSts = m8;
}
}
else
{
......
......@@ -86,7 +86,7 @@ extern MonitorStruct SysNM_KL15Monitor;
#define EXIT_HIGH_Y_RANGE 16000U
#define ENTER_HIGH_Y_RANGE 16500U
#define ENTER_HIGH_Y_RANGE 18000U
#define EXIT_HIGH_N_RANGE 18500U
......
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