Commit ab5a58eb authored by 郑萍's avatar 郑萍

feat:电源模式切换到Key_ACC自检

parent a438ed2b
......@@ -9,7 +9,7 @@
uint8_t interact_PWM_Low_Duty = 0;
void BackLight_Process(void)
{
if (SYS_OPR_STAT_IGN_ON)
if (Get_CAN_Power_State() != PKEY_ON && Get_CAN_Power_State() != KEY_OFF )
{
TimerM_PWM_set_duty(TIMERM_COUNTER1, TIMERM_CHB, BACK_LIGHT_DAY);
}
......@@ -21,7 +21,7 @@ void BackLight_Process(void)
void Interact_Light_Process(void)
{
if (SYS_OPR_STAT_IGN_ON)
if (Get_CAN_Power_State() != PKEY_ON && Get_CAN_Power_State() != KEY_OFF )
{
TimerM_PWM_set_duty(TIMERM_COUNTER0, TIMERM_CHD, interact_PWM_Low_Duty * 10);
}
......
......@@ -173,6 +173,38 @@ void System_Indicator_OFF_callback(void)
{
System_Indicator_CANFlag = 1;
}
uint8_t Get_CAN_Power_State(void)
{
uint8_t state = 0;
uint8_t Signal1 = Get_CAN_CH0_ID_125_Sig_MMCU_PowerMode();
switch (Signal1)
{
case 0x0:
state = KEY_OFF;
break;
case 0x1:
state = PKEY_ON;
break;
case 0x2:
state = KEY_ACC;
break;
case 0x3:
state = READY;
break;
case 0x4:
state = CHRG_PLUGIN;
break;
case 0x5:
state = CHRGING;
break;
case 0x6:
state = CHRGEND;
break;
default:
break;
}
return state;
}
uint8_t Get_CAN_CH0_ID_393_Sig_ICU_ProtoSubVer(void)
{
return (((uint8_t)((uint8_t)CAN_MSG_Read(CAN_CH0,CAN_CH0_ID_CAN_0x393_Msg_Count, 6u) >> 0u) & 0xFFu));
......
......@@ -30,6 +30,18 @@ typedef enum
CAN_CH0_ID_TOTAL_MAX,
} CAN_CH0_CAN_MSG_ID_t;
typedef enum
{
KEY_OFF = 0,
PKEY_ON,
KEY_ACC,
READY,
CHRG_PLUGIN,
CHRGING,
CHRGEND,
} POWER_CHECK_STATE_t;
typedef enum
{
......@@ -125,5 +137,6 @@ extern uint8_t Co_Can_ConvertSubID_CAN_CH0(uint32_t MsgID);
extern uint8_t System_Indicator_CANFlag;
void System_Indicator_ON_callback(void);
void System_Indicator_OFF_callback(void);
extern uint8_t Get_CAN_Power_State(void);
#endif
#include "CommonInterface\CommonInterface.h"
#include "CAN_APP\CAN_CH0_CAN_Communication_Matrix.h"
static uint32_t PowerIgnOnTimeLine;
uint32_t PowerIgnOffTimeLine;
uint32_t PowerIgnOffTimeLine;
uint8_t Power_CheckSelf = 0;
static uint32_t PowerSocTimeLine;
static COMMON_PowerStatus_t PowerSts; /*1 ON ; 0 OFF*/
......@@ -105,23 +106,12 @@ void Common_Set_Disp_V_Speed_Valid(DataValid_t Val)
void Common_Input_Para(void)
{
if (SYS_OPR_STAT_IGN_ON)
{
if ((Get_CAN_Power_State() != KEY_OFF))
{
Common_Set_IG_Sts(COMMON_POWER_ON);
Common_Set_IG_Sts_Valid(COMMON_Valid);
// Common_Set_Act_V_Speed(Get_ActualVechileSpeed());
// Common_Set_Disp_V_Speed(Get_DispVechileSpeed());
// if (Get_VechileSpeedValid() == COMMON_Valid)
// {
// Common_Set_Act_V_Speed_Valid(COMMON_Valid);
// Common_Set_Disp_V_Speed_Valid(COMMON_Valid);
// }
// else
// {
// Common_Set_Act_V_Speed_Valid(COMMON_InValid);
// Common_Set_Disp_V_Speed_Valid(COMMON_InValid);
// }
PowerIgnOffTimeLine = 0ul;
if (PowerIgnOnTimeLine < 0x7ffffffful)
......@@ -138,10 +128,21 @@ void Common_Input_Para(void)
}
Common_Set_IG_Sts(COMMON_POWER_OFF);
Common_Set_IG_Sts_Valid(COMMON_Valid);
// /*车转真实值OFF为0*/
// Common_Set_Act_V_Speed(0u);
// Common_Set_Disp_V_Speed(0u);
}
if ((Get_CAN_Power_State() == PKEY_ON))
{
PowerIgnOnTimeLine = 0ul;
}
}
else
{
PowerIgnOnTimeLine = 0ul;
if (PowerIgnOffTimeLine < 0x7ffffffful)
{
PowerIgnOffTimeLine += 2u;
}
Common_Set_IG_Sts(COMMON_POWER_OFF);
Common_Set_IG_Sts_Valid(COMMON_Valid);
}
}
......@@ -160,16 +161,14 @@ uint32_t Common_GetSocTime(void)
return PowerSocTimeLine;
}
/**
* @brief 公里转换英里
* @return 公里
*/
uint32_t Data_Km_To_Mile(uint32_t Km)
{
//Km *= 621;
//Km /= 1000;
// Km *= 621;
// Km /= 1000;
Km *= 100;
Km /= 161;
return Km;
......@@ -184,5 +183,3 @@ uint32_t Data_Mile_To_Km(uint32_t Mile)
Mile /= 100;
return Mile;
}
......@@ -148,7 +148,7 @@ void Gauge_Clock_Display(void)
void Gauge_Trip_Display(void)
{
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if (Common_Get_IG_Sts() == COMMON_POWER_ON)
{
SEG_SET_TRIP_NUM(1u, Get_Trip_Value());
}
......@@ -160,7 +160,7 @@ void Gauge_Trip_Display(void)
void Gauge_ODO_Display(void)
{
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if (Common_Get_IG_Sts() == COMMON_POWER_ON)
{
SEG_SET_ODO_NUM(1u, Get_ODO_Value() / 10u);
}
......@@ -171,7 +171,7 @@ void Gauge_ODO_Display(void)
}
void Gauge_EspeedDial_Display(void)
{
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if (Common_Get_IG_Sts() == COMMON_POWER_ON)
{
// SEG_SET_EspeedDial(1, Get_DispEngineSpeed()/1000, Get_DispEngineSpeed());
}
......@@ -182,7 +182,7 @@ void Gauge_EspeedDial_Display(void)
}
void Gauge_Frame_Display(void)
{
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if (Common_Get_IG_Sts() == COMMON_POWER_ON)
{
SEG_SET_Frame(1);
}
......@@ -192,79 +192,54 @@ void Gauge_Frame_Display(void)
}
}
void Clear_Bu98(void)
{
uint8_t i = 0;
for(i = 0; i < BU98R10_DDRAM_SIZE; i ++)
for (i = 0; i < BU98R10_DDRAM_SIZE; i++)
{
BU98R10Chip0DDRAM.Byte[i] = 0;
BU98R10Chip1DDRAM.Byte[i] = 0;
}
}
void Gauge_Service(void)
{
static uint16_t VSpeed_Count = 0u;
uint8_t i = 0;
Gauge_Frame_Display();
if (0)
{
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if (Common_Get_IG_Sts() == COMMON_POWER_ON)
{
Check_SEG_Display();
}
else
{
Clear_Bu98();
// RTE_GPIO_Set_Level(VSPEED_TEN_OUT, 0);
// RTE_GPIO_Set_Level(VSPEED_HUNDREDS_OUT, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_29_MPH, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_30_KM_H, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_02_Normal_Voltage, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_03_High_Low_Voltage, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_06_Screen_Time, 0);
}
}
else
{
if ( Common_Get_IG_Sts( ) == COMMON_POWER_ON )
if (Common_Get_IG_Sts() == COMMON_POWER_ON && ADC_Read_Signal(ADC_CH_KL30_VOLTAGE) <= 16000 && ADC_Read_Signal(ADC_CH_KL30_VOLTAGE) >= 9000)
{
if (Get_CAN_Power_State() != PKEY_ON )
{
if (Common_GetIgnOnTime() >= 3000)
{
// Gauge_Power_1_SOC_Display();
// Gauge_Power_2_SOC_Display();
Checkself_Init();
Gauge_ODO_Display();
Gauge_Clock_Display();
Gauge_Trip_Display();
Gauge_EspeedDial_Display();
SEG_SET_Clock(22,22,1,1,1);
SEG_SET_Fault_Code(1,2222);
SEG_SET_EleDial(1,10,22);
SEG_SET_FuelDial(1,8);
SEG_SET_GEAR(1,1);
SEG_SET_Cutterhead(1,2);
SEG_SET_LED_STS(0,1);
SEG_SET_LED_STS(1,1);
SEG_SET_LED_STS(2,1);
SEG_SET_LED_STS(3,1);
SEG_SET_LED_STS(4,1);
SEG_SET_LED_STS(5,1);
SEG_SET_LED_STS(6,1);
SEG_SET_LED_STS(7,1);
SEG_SET_LED_STS(8,1);
SEG_SET_LED_STS(9,1);
SEG_SET_LED_STS(10,1);
SEG_SET_LED_STS(11,1);
SEG_SET_LED_STS(12,1);
SEG_SET_LED_STS(13,1);
SEG_SET_LED_STS(14,1);
SEG_SET_LED_STS(15,1);
SEG_SET_LED_STS(16,1);
SEG_SET_LED_STS(17,1);
SEG_SET_LED_STS(18,1);
SEG_SET_Clock(22, 22, 1, 1, 1);
SEG_SET_Fault_Code(0, 2222);
SEG_SET_EleDial(1, 10, 22);
SEG_SET_FuelDial(0, 8);
SEG_SET_GEAR(1, 1);
SEG_SET_Cutterhead(1, 2);
SEG_SET_Frame(1);
interact_PWM_Low_Duty = 0;
}
else
{
......@@ -272,18 +247,23 @@ void Gauge_Service(void)
}
}
else
{
// Clear_Bu98();
// for (i = 0; i < LampCh0_MAX; i++)
// {
// LED_Driver_Channel_Set(LampChannel_0, i, LED_OFF);
// }
interact_PWM_Low_Duty = 50;
//蜂鸣器
}
}
else
{
Clear_Bu98();
// RTE_GPIO_Set_Level(VSPEED_TEN_OUT, 0);
// RTE_GPIO_Set_Level(VSPEED_HUNDREDS_OUT, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_29_MPH, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_30_KM_H, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_02_Normal_Voltage, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_03_High_Low_Voltage, 0);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_06_Screen_Time, 0);
for (i = 0; i < LampCh0_MAX; i++)
{
LED_Driver_Channel_Set(LampChannel_0, i, LED_OFF);
}
}
}
}
......@@ -19,7 +19,7 @@ const uint8_t SEG_UNDISPLAY_NUMBER0[] = {0x00u, 0x06u, 0x5Bu, 0x4Fu, 0x66u, 0x6D
_Fun_Res SEG_SET_Frame(uint8_t m_Flag)
{
if ( m_Flag == 1 )
if (m_Flag == 1)
{
/*边框*/
IC2_SEG040 = IC_SEG_ON;
......@@ -47,7 +47,7 @@ _Fun_Res SEG_SET_LED_STS(uint8_t LED_NUM, uint8_t m_Flag)
_Fun_Res m_Res;
uint8_t Flag;
uint8_t Num;
if ( m_Flag == 0u )
if (m_Flag == 0u)
{
Flag = IC_SEG_OFF;
}
......@@ -56,7 +56,7 @@ _Fun_Res SEG_SET_LED_STS(uint8_t LED_NUM, uint8_t m_Flag)
Flag = IC_SEG_ON;
}
Num = LED_NUM;
switch ( Num )
switch (Num)
{
case SEG_LED_Recharge:
IC1_SEG150 = Flag;
......@@ -132,7 +132,7 @@ _Fun_Res SEG_SET_LED_STS(uint8_t LED_NUM, uint8_t m_Flag)
_Fun_Res SEG_SET_Cutterhead(uint16_t LED_NUM, uint8_t m_Flag)
{
_Fun_Res m_Res;
if(m_Flag)
if (m_Flag)
{
IC1_SEG118 = IC_SEG_ON;
IC1_SEG073 = IC_SEG_ON;
......@@ -140,7 +140,7 @@ _Fun_Res SEG_SET_Cutterhead(uint16_t LED_NUM, uint8_t m_Flag)
IC1_SEG079 = IC_SEG_ON;
IC1_SEG117 = IC_SEG_ON;
IC1_SEG083 = IC_SEG_ON;
if(LED_NUM ==1)
if (LED_NUM == 1)
{
IC1_SEG075 = IC_SEG_OFF;
IC1_SEG082 = IC_SEG_ON;
......@@ -150,7 +150,7 @@ _Fun_Res SEG_SET_Cutterhead(uint16_t LED_NUM, uint8_t m_Flag)
IC1_SEG076 = IC_SEG_OFF;
IC1_SEG077 = IC_SEG_OFF;
}
else if(LED_NUM == 2)
else if (LED_NUM == 2)
{
IC1_SEG075 = IC_SEG_ON;
IC1_SEG082 = IC_SEG_ON;
......@@ -160,7 +160,7 @@ _Fun_Res SEG_SET_Cutterhead(uint16_t LED_NUM, uint8_t m_Flag)
IC1_SEG076 = IC_SEG_OFF;
IC1_SEG077 = IC_SEG_ON;
}
else if(LED_NUM == 3)
else if (LED_NUM == 3)
{
IC1_SEG075 = IC_SEG_ON;
IC1_SEG082 = IC_SEG_ON;
......@@ -217,9 +217,9 @@ _Fun_Res SEG_SET_Cutterhead(uint16_t LED_NUM, uint8_t m_Flag)
_Fun_Res SEG_SET_GEAR(uint8_t m_Gear_Flag, uint8_t m_Gear)
{
/*挡位符号*/
if ( m_Gear_Flag == 1u )
if (m_Gear_Flag == 1u)
{
if ( m_Gear == Gear_P )
if (m_Gear == Gear_P)
{
IC2_SEG100 = IC_SEG_ON;
IC2_SEG097 = IC_SEG_ON;
......@@ -244,7 +244,7 @@ _Fun_Res SEG_SET_GEAR(uint8_t m_Gear_Flag, uint8_t m_Gear)
IC2_SEG144 = IC_SEG_OFF;
IC2_SEG102 = IC_SEG_OFF;
}
else if ( m_Gear == 1 )
else if (m_Gear == 1)
{
IC2_SEG097 = IC_SEG_OFF;
IC2_SEG148 = IC_SEG_OFF;
......@@ -257,7 +257,7 @@ _Fun_Res SEG_SET_GEAR(uint8_t m_Gear_Flag, uint8_t m_Gear)
IC2_SEG143 = IC_SEG_OFF;
IC2_SEG032 = IC_SEG_OFF;
IC2_SEG094 = IC_SEG_ON;//
IC2_SEG094 = IC_SEG_ON; //
IC2_SEG095 = IC_SEG_ON;
IC2_SEG149 = IC_SEG_ON;
IC2_SEG145 = IC_SEG_ON;
......@@ -271,7 +271,7 @@ _Fun_Res SEG_SET_GEAR(uint8_t m_Gear_Flag, uint8_t m_Gear)
IC2_SEG144 = IC_SEG_ON;
IC2_SEG102 = IC_SEG_OFF;
}
else if ( m_Gear == 2 )
else if (m_Gear == 2)
{
IC2_SEG097 = IC_SEG_OFF;
......@@ -288,7 +288,7 @@ _Fun_Res SEG_SET_GEAR(uint8_t m_Gear_Flag, uint8_t m_Gear)
IC2_SEG102 = IC_SEG_ON;
IC2_SEG143 = IC_SEG_ON;
IC2_SEG094 = IC_SEG_ON;//
IC2_SEG094 = IC_SEG_ON; //
IC2_SEG095 = IC_SEG_ON;
IC2_SEG149 = IC_SEG_ON;
IC2_SEG145 = IC_SEG_ON;
......@@ -297,7 +297,6 @@ _Fun_Res SEG_SET_GEAR(uint8_t m_Gear_Flag, uint8_t m_Gear)
IC2_SEG103 = IC_SEG_ON;
IC2_SEG098 = IC_SEG_ON;
IC2_SEG150 = IC_SEG_ON;
}
else
{
......@@ -328,8 +327,6 @@ _Fun_Res SEG_SET_GEAR(uint8_t m_Gear_Flag, uint8_t m_Gear)
IC2_SEG142 = IC_SEG_OFF;
IC2_SEG150 = IC_SEG_OFF;
}
}
/**@brief 燃油表盘显示函数
* @param[in] m_Flag 段与数字是否显示 -1 显示 -0 不显示
......@@ -343,7 +340,7 @@ _Fun_Res SEG_SET_FuelDial(uint8_t m_Flag, uint8_t m_SEG)
_Fun_Res m_Res;
// uint8_t Num;
uint8_t m8;
if ( m_Flag == 1u )
if (m_Flag == 1u)
{
IC1_SEG052 = IC_SEG_GREY;
IC1_SEG051 = IC_SEG_GREY;
......@@ -354,11 +351,10 @@ _Fun_Res SEG_SET_FuelDial(uint8_t m_Flag, uint8_t m_SEG)
IC1_SEG046 = IC_SEG_GREY;
IC1_SEG045 = IC_SEG_GREY;
IC1_SEG053 = IC_SEG_ON;
IC1_SEG105 = IC_SEG_ON;
IC1_SEG044 = IC_SEG_ON;
switch ( m_SEG )
switch (m_SEG)
{
case 8u:
IC1_SEG045 = IC_SEG_ON;
......@@ -399,7 +395,6 @@ _Fun_Res SEG_SET_FuelDial(uint8_t m_Flag, uint8_t m_SEG)
return m_Res;
}
/**@brief 电量表盘显示函数
* @param[in] m_Flag 段与数字是否显示 -1 显示 -0 不显示
* @param[in] m_SEG 车速表盘段数0<=m_SEG<=10
......@@ -412,7 +407,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
_Fun_Res m_Res;
uint8_t Num;
uint8_t m8;
if ( m_Flag == 1u )
if (m_Flag == 1u)
{
IC1_SEG072 = IC_SEG_GREY;
IC1_SEG071 = IC_SEG_GREY;
......@@ -456,8 +451,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
IC1_SEG135 = IC_SEG_GREY;
IC1_SEG134 = IC_SEG_GREY;
switch ( m_SEG )
switch (m_SEG)
{
case 10u:
......@@ -506,9 +500,9 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
IC1_SEG072 = IC_SEG_OFF;
}
Num = (m_NUM / 10u) % 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
m8 = SEG_DISPLAY_NUMBER0[Num];
if ( Bit_Is_Set(m8, 0) )
if (Bit_Is_Set(m8, 0))
{
IC1_SEG069 = IC_SEG_ON;
}
......@@ -516,7 +510,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG069 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC1_SEG068 = IC_SEG_ON;
}
......@@ -524,7 +518,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG068 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC1_SEG066 = IC_SEG_ON;
}
......@@ -532,7 +526,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG066 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC1_SEG065 = IC_SEG_ON;
}
......@@ -540,7 +534,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG065 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC1_SEG070 = IC_SEG_ON;
}
......@@ -548,7 +542,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG070 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC1_SEG071 = IC_SEG_ON;
}
......@@ -556,7 +550,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG071 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC1_SEG067 = IC_SEG_ON;
}
......@@ -566,8 +560,8 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
}
/*个位*/
Num = m_NUM % 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
if ( Bit_Is_Set(m8, 0) )
m8 = SEG_DISPLAY_NUMBER0[Num];
if (Bit_Is_Set(m8, 0))
{
IC1_SEG060 = IC_SEG_ON;
}
......@@ -575,7 +569,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG060 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC1_SEG059 = IC_SEG_ON;
}
......@@ -583,7 +577,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG059 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC1_SEG058 = IC_SEG_ON;
}
......@@ -591,7 +585,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG058 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC1_SEG064 = IC_SEG_ON;
}
......@@ -599,7 +593,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG064 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC1_SEG061 = IC_SEG_ON;
}
......@@ -607,7 +601,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG061 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC1_SEG063 = IC_SEG_ON;
}
......@@ -615,7 +609,7 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
{
IC1_SEG063 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC1_SEG062 = IC_SEG_ON;
}
......@@ -683,13 +677,13 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
_Fun_Res m_Res;
uint16_t Num;
uint8_t m8;
if ( (m_Flag > 3u) || (m_NUM > 9999u) )
if ((m_Flag > 3u) || (m_NUM > 9999u))
{
m_Res = EX_ERR;
}
else
{
if ( m_Flag == 1u )
if (m_Flag == 1u)
{
IC1_SEG087 = IC_SEG_ON;
IC1_SEG094 = IC_SEG_ON;
......@@ -723,9 +717,9 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
/*千位*/
Num = (m_NUM / 1000u) % 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
m8 = SEG_DISPLAY_NUMBER0[Num];
if ( Bit_Is_Set(m8, 0) )
if (Bit_Is_Set(m8, 0))
{
IC1_SEG094 = IC_SEG_ON;
}
......@@ -733,7 +727,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG094 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC1_SEG093 = IC_SEG_ON;
}
......@@ -741,7 +735,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG093 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC1_SEG091 = IC_SEG_ON;
}
......@@ -749,7 +743,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG091 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC1_SEG090 = IC_SEG_ON;
}
......@@ -757,7 +751,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG090 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC1_SEG088 = IC_SEG_ON;
}
......@@ -765,7 +759,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG088 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC1_SEG089 = IC_SEG_ON;
}
......@@ -773,7 +767,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG089 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC1_SEG092 = IC_SEG_ON;
}
......@@ -783,9 +777,9 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
}
/*百位*/
Num = (m_NUM / 100u) % 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
m8 = SEG_DISPLAY_NUMBER0[Num];
if ( Bit_Is_Set(m8, 0) )
if (Bit_Is_Set(m8, 0))
{
IC1_SEG101 = IC_SEG_ON;
}
......@@ -793,7 +787,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG101 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC1_SEG100 = IC_SEG_ON;
}
......@@ -801,7 +795,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG100 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC1_SEG098 = IC_SEG_ON;
}
......@@ -809,7 +803,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG098 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC1_SEG097 = IC_SEG_ON;
}
......@@ -817,7 +811,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG097 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC1_SEG095 = IC_SEG_ON;
}
......@@ -825,7 +819,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG095 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC1_SEG096 = IC_SEG_ON;
}
......@@ -833,7 +827,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG096 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC1_SEG099 = IC_SEG_ON;
}
......@@ -843,8 +837,8 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
}
/*十位*/
Num = (m_NUM / 10u) % 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
if ( Bit_Is_Set(m8, 0) )
m8 = SEG_DISPLAY_NUMBER0[Num];
if (Bit_Is_Set(m8, 0))
{
IC1_SEG108 = IC_SEG_ON;
}
......@@ -852,7 +846,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG108 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC1_SEG107 = IC_SEG_ON;
}
......@@ -860,7 +854,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG107 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC1_SEG105 = IC_SEG_ON;
}
......@@ -868,7 +862,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG105 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC1_SEG104 = IC_SEG_ON;
}
......@@ -876,7 +870,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG104 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC1_SEG102 = IC_SEG_ON;
}
......@@ -884,7 +878,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG102 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC1_SEG103 = IC_SEG_ON;
}
......@@ -892,7 +886,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG103 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC1_SEG106 = IC_SEG_ON;
}
......@@ -902,8 +896,8 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
}
/*个位*/
Num = m_NUM % 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
if ( Bit_Is_Set(m8, 0) )
m8 = SEG_DISPLAY_NUMBER0[Num];
if (Bit_Is_Set(m8, 0))
{
IC1_SEG115 = IC_SEG_ON;
}
......@@ -911,7 +905,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG115 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC1_SEG114 = IC_SEG_ON;
}
......@@ -919,7 +913,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG114 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC1_SEG113 = IC_SEG_ON;
}
......@@ -927,7 +921,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG113 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC1_SEG112 = IC_SEG_ON;
}
......@@ -935,7 +929,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG112 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC1_SEG109 = IC_SEG_ON;
}
......@@ -943,7 +937,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG109 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC1_SEG111 = IC_SEG_ON;
}
......@@ -951,7 +945,7 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
{
IC1_SEG111 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC1_SEG110 = IC_SEG_ON;
}
......@@ -2094,14 +2088,10 @@ _Fun_Res SEG_SET_TRIP_NUM(uint8_t m_Flag, uint16_t m_NUM)
IC1_SEG115 = IC_SEG_ON;
IC1_SEG101 = IC_SEG_ON;
/*千位*/
Num = (m_NUM / 1000u) % 10u;
m8 = SEG_UNDISPLAY_NUMBER0[Num];
if (Bit_Is_Set(m8, 0))
{
IC1_SEG082 = IC_SEG_ON;
......@@ -2396,13 +2386,13 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
_Fun_Res m_Res;
uint8_t Num;
uint8_t m8;
if ( (m_hour >= 99u) || (m_minute >= 99u) || (m_icon > 1u) || (m_Flag1 > 1u) || (m_Flag2 > 1u) )
if ((m_hour >= 99u) || (m_minute >= 99u) || (m_icon > 1u) || (m_Flag1 > 1u) || (m_Flag2 > 1u))
{
m_Res = EX_ERR;
}
else
{
if ( m_icon == 1u )
if (m_icon == 1u)
{
IC2_SEG084 = IC_SEG_ON;
}
......@@ -2410,11 +2400,11 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG084 = IC_SEG_OFF;
}
if ( m_Flag1 == 1u )
if (m_Flag1 == 1u)
{
Num = m_hour / 10u; /*86104-11*/
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
if ( Bit_Is_Set(m8, 0) )
m8 = SEG_DISPLAY_NUMBER0[Num];
if (Bit_Is_Set(m8, 0))
{
IC2_SEG036 = IC_SEG_ON;
}
......@@ -2422,7 +2412,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG036 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC2_SEG035 = IC_SEG_ON;
}
......@@ -2430,7 +2420,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG035 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC2_SEG079 = IC_SEG_ON;
}
......@@ -2438,7 +2428,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG079 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC2_SEG078 = IC_SEG_ON;
}
......@@ -2446,7 +2436,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG078 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC2_SEG037 = IC_SEG_ON;
}
......@@ -2454,7 +2444,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG037 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC2_SEG039 = IC_SEG_ON;
}
......@@ -2462,7 +2452,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG039 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC2_SEG038 = IC_SEG_ON;
}
......@@ -2471,8 +2461,8 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
IC2_SEG038 = IC_SEG_OFF;
}
Num = m_hour % 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
if ( Bit_Is_Set(m8, 0) )
m8 = SEG_DISPLAY_NUMBER0[Num];
if (Bit_Is_Set(m8, 0))
{
IC2_SEG033 = IC_SEG_ON;
}
......@@ -2480,7 +2470,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG033 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC2_SEG032 = IC_SEG_ON;
}
......@@ -2488,7 +2478,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG032 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC2_SEG083 = IC_SEG_ON;
}
......@@ -2496,7 +2486,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG083 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC2_SEG082 = IC_SEG_ON;
}
......@@ -2504,7 +2494,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG082 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC2_SEG034 = IC_SEG_ON;
}
......@@ -2512,7 +2502,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG034 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC2_SEG081 = IC_SEG_ON;
}
......@@ -2520,7 +2510,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG081 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC2_SEG080 = IC_SEG_ON;
}
......@@ -2546,11 +2536,11 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
IC2_SEG034 = IC_SEG_OFF;
IC2_SEG080 = IC_SEG_OFF;
}
if ( m_Flag2 == 1u )
if (m_Flag2 == 1u)
{
Num = m_minute / 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
if ( Bit_Is_Set(m8, 0) )
m8 = SEG_DISPLAY_NUMBER0[Num];
if (Bit_Is_Set(m8, 0))
{
IC2_SEG030 = IC_SEG_ON;
}
......@@ -2558,7 +2548,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG030 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC2_SEG029 = IC_SEG_ON;
}
......@@ -2566,7 +2556,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG029 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC2_SEG088 = IC_SEG_ON;
}
......@@ -2574,7 +2564,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG088 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC2_SEG087 = IC_SEG_ON;
}
......@@ -2582,7 +2572,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG087 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC2_SEG031 = IC_SEG_ON;
}
......@@ -2590,7 +2580,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG031 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC2_SEG086 = IC_SEG_ON;
}
......@@ -2598,7 +2588,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG086 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC2_SEG085 = IC_SEG_ON;
}
......@@ -2607,8 +2597,8 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
IC2_SEG085 = IC_SEG_OFF;
}
Num = m_minute % 10u;
m8 = SEG_DISPLAY_NUMBER0 [ Num ];
if ( Bit_Is_Set(m8, 0) )
m8 = SEG_DISPLAY_NUMBER0[Num];
if (Bit_Is_Set(m8, 0))
{
IC2_SEG027 = IC_SEG_ON;
}
......@@ -2616,7 +2606,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG027 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 1) )
if (Bit_Is_Set(m8, 1))
{
IC2_SEG026 = IC_SEG_ON;
}
......@@ -2624,7 +2614,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG026 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 2) )
if (Bit_Is_Set(m8, 2))
{
IC2_SEG092 = IC_SEG_ON;
}
......@@ -2632,7 +2622,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG092 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 3) )
if (Bit_Is_Set(m8, 3))
{
IC2_SEG091 = IC_SEG_ON;
}
......@@ -2640,7 +2630,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG091 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 5) )
if (Bit_Is_Set(m8, 5))
{
IC2_SEG028 = IC_SEG_ON;
}
......@@ -2648,7 +2638,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG028 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 4) )
if (Bit_Is_Set(m8, 4))
{
IC2_SEG090 = IC_SEG_ON;
}
......@@ -2656,7 +2646,7 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
{
IC2_SEG090 = IC_SEG_OFF;
}
if ( Bit_Is_Set(m8, 6) )
if (Bit_Is_Set(m8, 6))
{
IC2_SEG089 = IC_SEG_ON;
}
......@@ -2703,21 +2693,19 @@ void SEG_Scan_SET_FuelDial(void)
}
}
uint8_t Espeed_check_SEG_step = 0;
void SEG_Scan_SET_EspeedDial(void)
{
uint16_t a = 0;
a = (Espeed_check_SEG_step / 2) * 100;
//SEG_SET_EspeedDial(1, a / 1000, a);
// SEG_SET_EspeedDial(1, a / 1000, a);
}
uint8_t check_SEG_step = 0;
///*仪表段码扫描函数*/
//void Check_SEG_Display(void)
// void Check_SEG_Display(void)
//{
// uint32_t a;
......@@ -2773,7 +2761,7 @@ void Checkself_SEG_Display(void)
SEG_SET_FuelDial(1, Fuel);
Espeed = (Checkself_SEG_step * 2 / 5) * 1000;
//SEG_SET_EspeedDial(1, Espeed / 1000, Espeed);
// SEG_SET_EspeedDial(1, Espeed / 1000, Espeed);
Vspeed = Checkself_SEG_step * 7;
if (Vspeed > 198)
......@@ -2790,6 +2778,36 @@ void Checkself_SEG_Display(void)
hour = (Checkself_SEG_step / 3) * 11;
min = (Checkself_SEG_step / 3) * 11;
SEG_SET_Clock(hour, min, 1, 1, 1);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_00_Grass_Full_R, LED_ON);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_01_Power_Battery_Failure_R, LED_ON);
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_02_System_Indicator_R, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_03_P_GEAR_G, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_04_GEAR_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_08_Battery_Charging_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_10_READY_G, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_11_Key_Access_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_12_Seat_Detection_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_13_OVERLOAD_R, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_14_Cutterhead_Switch_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_15_Cutterhead_Gear_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_17_External_Discharge_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_21_LED_Open_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_31_Working_Hours_One_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_32_Charging_Connection_R, LED_ON);
SEG_SET_LED_STS(SEG_LED_Recharge, 1);
// SEG_SET_LED_STS(SEG_LED_System_Light, 1);
SEG_SET_LED_STS(SEG_LED_Chloramine, 1);
SEG_SET_LED_STS(SEG_LED_Cutter_Overload, 1);
SEG_SET_LED_STS(SEG_LED_Seat_Detection, 1);
SEG_SET_LED_STS(SEG_LED_Key_Access, 1);
SEG_SET_LED_STS(SEG_LED_Ready, 1);
SEG_SET_LED_STS(SEG_LED_Cutter_Head_switch, 1);
SEG_SET_LED_STS(SEG_LED_External_Discharge, 1);
SEG_SET_LED_STS(SEG_LED_Distance_Light, 1);
SEG_SET_LED_STS(SEG_LED_HHT_Charger, 1);
if (Checkself_SEG_step_count < 60)
{
......@@ -2819,5 +2837,4 @@ void Checkself_SEG_Display(void)
void TYW_Check_Count(void)
{
}
......@@ -53,6 +53,7 @@ static void Power_KL30_Init(void)
Checkself_Init();
LINE_IN_Init();
LED_Driver_Init_Example();//注意顺序2
LED_Driver_Service_Immediate();
Data_User_Mileage_KL30Init();
TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400, 64000000);
TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 400, 64000000);
......
......@@ -67,39 +67,39 @@ static void LED_Power_Battery_Failure_R_Execution(Tellib_uint16_t led
uint8_t u8CanId401Flag = 0;
const LED_Attribute_st LED_Attribute [ LED_Max ] = {
/* 指示灯索引 是否自检 外部信号自检 工作电源状态 自检开始时间 自检持续时间 指示灯点亮条件 指示灯执行函数 */
{em_LED_EFI_failure_Y, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_EFI_failure_Judgement, LED_EFI_failure_Execution },
{em_LED_Fuel_Alarm_Y, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Fuel_Alarm_Judgement, LED_Fuel_Alarm_Execution },
{em_LED_Lead_Acid_Battery_Failure_R, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Lead_Acid_Battery_Failure_Judgement, LED_Lead_Acid_Battery_Failure_Execution },
{em_LED_Oil_Pressure_R, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Oil_Pressure_Judgement, LED_Oil_Pressure_Execution },
{em_LED_Grass_Full_R, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Grass_Full_Judgement, LED_Grass_Full_Execution },
{em_LED_OVERLOAD_R, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_OVERLOAD_Judgement, LED_OVERLOAD_Execution },
{em_LED_READY_G, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_READY_Judgement, LED_READY_Execution },
{em_LED_Seat_Detection_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Seat_Detection_Judgement, LED_Seat_Detection_Execution },
{em_LED_Key_Access_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Key_Access_Judgement, LED_Key_Access_Execution },
{em_LED_Battery_Charging_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Battery_Charging_Judgement, LED_Battery_Charging_Execution },
{em_LED_Cutterhead_Switch_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Cutterhead_Switch_Judgement, LED_Cutterhead_Switch_Execution },
{em_LED_GEAR_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_GEAR_Judgement, LED_GEAR_Execution },
{em_LED_External_Discharge_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_External_Discharge_Judgement, LED_External_Discharge_Execution },
{em_LED_Engine_Works_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Engine_Works_Judgement, LED_Engine_Works_Execution },
{em_LED_Bluetooth_Connection_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Bluetooth_Connection_Judgement, LED_Bluetooth_Connection_Execution },
{em_LED_LED_Open_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_LED_Open_Judgement, LED_LED_Open_Execution },
{em_LED_Cruise_Control_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Cruise_Control_Judgement, LED_Cruise_Control_Execution },
{em_LED_Tire_pressure_F_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Tire_pressure_F_Judgement, LED_Tire_pressure_F_Execution },
{em_LED_Tire_pressure_R_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Tire_pressure_R_Judgement, LED_Tire_pressure_R_Execution },
{em_LED_Gears_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Gears_Judgement, LED_Gears_Execution },
{em_LED_Cutterhead_Gear_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Cutterhead_Gear_Judgement, LED_Cutterhead_Gear_Execution },
{em_LED_Working_Hours_One_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Working_Hours_One_Judgement, LED_Working_Hours_One_Execution },
{em_LED_Fault_Codes_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Fault_Codes_Judgement, LED_Fault_Codes_Execution },
{em_LED_System_Indicator_R, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_SystIndicator_R_Judgement, LED_SystIndicator_R_Execution },
{em_LED_P_GEAR_G, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_P_GEAR_G_Judgement, LED_P_GEAR_G_Execution },
{em_LED_Fuel_Alarm_W, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Fuel_Alarm_W_Judgement, LED_Fuel_Alarm_W_Execution },
{em_LED_Charging_Connection_R, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Charging_Connection_R_Judgement, LED_Charging_Connection_R_Execution },
{em_LED_Power_Battery_Failure_R, SelfCheck, NoExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Power_Battery_Failure_R_Judgement, LED_Power_Battery_Failure_R_Execution },
{em_LED_EFI_failure_Y, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_EFI_failure_Judgement, LED_EFI_failure_Execution },
{em_LED_Fuel_Alarm_Y, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Fuel_Alarm_Judgement, LED_Fuel_Alarm_Execution },
{em_LED_Lead_Acid_Battery_Failure_R, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Lead_Acid_Battery_Failure_Judgement, LED_Lead_Acid_Battery_Failure_Execution },
{em_LED_Oil_Pressure_R, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Oil_Pressure_Judgement, LED_Oil_Pressure_Execution },
{em_LED_Grass_Full_R, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Grass_Full_Judgement, LED_Grass_Full_Execution },
{em_LED_OVERLOAD_R, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_OVERLOAD_Judgement, LED_OVERLOAD_Execution },
{em_LED_READY_G, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_READY_Judgement, LED_READY_Execution },
{em_LED_Seat_Detection_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Seat_Detection_Judgement, LED_Seat_Detection_Execution },
{em_LED_Key_Access_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Key_Access_Judgement, LED_Key_Access_Execution },
{em_LED_Battery_Charging_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Battery_Charging_Judgement, LED_Battery_Charging_Execution },
{em_LED_Cutterhead_Switch_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Cutterhead_Switch_Judgement, LED_Cutterhead_Switch_Execution },
{em_LED_GEAR_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_GEAR_Judgement, LED_GEAR_Execution },
{em_LED_External_Discharge_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_External_Discharge_Judgement, LED_External_Discharge_Execution },
{em_LED_Engine_Works_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Engine_Works_Judgement, LED_Engine_Works_Execution },
{em_LED_Bluetooth_Connection_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Bluetooth_Connection_Judgement, LED_Bluetooth_Connection_Execution },
{em_LED_LED_Open_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_LED_Open_Judgement, LED_LED_Open_Execution },
{em_LED_Cruise_Control_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Cruise_Control_Judgement, LED_Cruise_Control_Execution },
{em_LED_Tire_pressure_F_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Tire_pressure_F_Judgement, LED_Tire_pressure_F_Execution },
{em_LED_Tire_pressure_R_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Tire_pressure_R_Judgement, LED_Tire_pressure_R_Execution },
{em_LED_Gears_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Gears_Judgement, LED_Gears_Execution },
{em_LED_Cutterhead_Gear_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Cutterhead_Gear_Judgement, LED_Cutterhead_Gear_Execution },
{em_LED_Working_Hours_One_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Working_Hours_One_Judgement, LED_Working_Hours_One_Execution },
{em_LED_Fault_Codes_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Fault_Codes_Judgement, LED_Fault_Codes_Execution },
{em_LED_System_Indicator_R, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_SystIndicator_R_Judgement, LED_SystIndicator_R_Execution },
{em_LED_P_GEAR_G, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_P_GEAR_G_Judgement, LED_P_GEAR_G_Execution },
{em_LED_Fuel_Alarm_W, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Fuel_Alarm_W_Judgement, LED_Fuel_Alarm_W_Execution },
{em_LED_Charging_Connection_R, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Charging_Connection_R_Judgement, LED_Charging_Connection_R_Execution },
{em_LED_Power_Battery_Failure_R, NoSelfCheck, ExterNalCheck, LED_IGN_ON, 0u, 3000ul, LED_Power_Battery_Failure_R_Judgement, LED_Power_Battery_Failure_R_Execution },
};
Tellib_uint8_t Tel_Mem [ Tel_MEM_Block_Size * LED_Max + Tel_MEM_Block_Addition ];
uint8_t PowerSts_num;
void Telltales_Init(void)
{
TelExtPara m_ExtPara;
......@@ -107,6 +107,7 @@ void Telltales_Init(void)
m_ExtPara.LED_PowerOFF_TimerCbk = Common_GetIgnOffTime;
m_ExtPara.LED_PowerON_TimerCbk = Common_GetIgnOnTime;
m_ExtPara.LED_PowerCbk = Common_Get_IG_Sts;
PowerSts_num = Common_Get_IG_Sts();
u8CanId401Flag = 0;
Telltales_KL30_Wakeup_Init(Tel_Mem, LED_Attribute, &m_ExtPara);
}
......@@ -279,8 +280,8 @@ static void LED_OVERLOAD_Execution(Tellib_uint16_t led_status)
static Tellib_uint16_t LED_READY_Judgement(void)
{
Tellib_uint16_t LED_STATE = 0u;
Tellib_uint8_t Signal1 = Get_CAN_CH0_ID_125_Sig_MMCU_PowerMode();
if (Signal1 == 0x3)
Tellib_uint8_t Signal1 = Get_CAN_Power_State();
if (Signal1 == READY)
{
LED_STATE = 1;
interact_PWM_Low_Duty = 30;
......@@ -372,16 +373,16 @@ static Tellib_uint16_t LED_Battery_Charging_Judgement(void)
Tellib_uint16_t LED_STATE = 0u;
Tellib_uint8_t Signal1 = Get_CAN_CH0_ID_18202922_Sig_MBMS_TOTALSigAcc();
Tellib_uint8_t Signal2 = Get_CAN_CH0_ID_18202922_Sig_MBMS_TOTALSigCharge();
Tellib_uint8_t Signal3 = Get_CAN_CH0_ID_125_Sig_MMCU_PowerMode();
Tellib_uint8_t Signal3 = Get_CAN_Power_State();
if(ADC_Read_Signal(ADC_CH_KL30_VOLTAGE) >= 9000 && ADC_Read_Signal(ADC_CH_KL30_VOLTAGE) <= 16000)
{
if (Signal1 == 0x1 && Signal2 == 0X1)
{
if(Signal3 == 0x4 || Signal3 == 0x6)
if(Signal3 == CHRG_PLUGIN || Signal3 == CHRGING)
{
LED_STATE = 2;
}
else if(Signal3 == 0x5)
else if(Signal3 == CHRGEND)
{
LED_STATE = 1;
}
......@@ -824,26 +825,30 @@ static Tellib_uint16_t LED_SystIndicator_R_Judgement(void)
}
static void LED_SystIndicator_R_Execution(Tellib_uint16_t led_status)
{
if ( led_status == 1u )
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_02_System_Indicator_R, LED_ON);
SEG_SET_LED_STS(SEG_LED_System_Light,1);
}
else
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_02_System_Indicator_R, LED_OFF);
SEG_SET_LED_STS(SEG_LED_System_Light,0);
}
// if ( led_status == 1u )
// {
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_02_System_Indicator_R, LED_ON);
// SEG_SET_LED_STS(SEG_LED_System_Light,1);
// }
// else
// {
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_02_System_Indicator_R, LED_OFF);
// SEG_SET_LED_STS(SEG_LED_System_Light,0);
// }
}
static Tellib_uint16_t LED_P_GEAR_G_Judgement(void)
{
Tellib_uint16_t LED_STATE = 0u;
Tellib_uint8_t Signal1 = Get_CAN_CH0_ID_125_Sig_MMCU_ParkingGearState();
if (Signal1 == 0x1)
Tellib_uint8_t Signal2 = Get_CAN_Power_State();
if ( Signal1 == 0x1 )
{
LED_STATE = 1;
}
else if(Signal2 == PKEY_ON)
{
LED_STATE = 2;
}
else
{
LED_STATE = 0;
......@@ -856,13 +861,28 @@ static void LED_P_GEAR_G_Execution(Tellib_uint16_t led_status)
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_04_GEAR_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_03_P_GEAR_G, LED_ON);
// SEG_SET_LED_STS(1,1);
SEG_SET_GEAR(Gear_P, 1);
}
else if(led_status == 2u)
{
if(FLASH_SYNC_1Hz)
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_04_GEAR_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_03_P_GEAR_G, LED_ON);
SEG_SET_GEAR(Gear_P, 1);
}
else
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_04_GEAR_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_03_P_GEAR_G, LED_OFF);
// SEG_SET_LED_STS(1,0);
SEG_SET_GEAR(Gear_P, 0);
}
}
else
{
LED_Driver_Channel_Set(LampChannel_0, LampCh0_04_GEAR_W, LED_ON);
LED_Driver_Channel_Set(LampChannel_0, LampCh0_03_P_GEAR_G, LED_OFF);
SEG_SET_GEAR(Gear_P, 0);
}
}
static Tellib_uint16_t LED_Fuel_Alarm_W_Judgement(void)
......
......@@ -21,15 +21,6 @@ void Sys_2ms_Tasks(void)
Sys_Status_Update_Service();
Analog_Signal_Conv_Service();
CanMSg_XMS_Analysis(&CAN_CH0_CanMsgOp,2u);
// if (RTE_GPIO_Get_Level(VSPEED_TEN_OUT))
// {
// RTE_GPIO_Config(VSPEED_TEN_OUT, RTE_GPIO_DIR_OUT|RTE_GPIO_LEVEL_LOW);
// }
// else
// {
// RTE_GPIO_Config(VSPEED_TEN_OUT, RTE_GPIO_DIR_OUT|RTE_GPIO_LEVEL_HIGH);
// }
}
void Sys_5ms_Tasks(void)
......@@ -66,15 +57,9 @@ void Sys_50ms_Tasks(void)
uint8_t u8LEDDriverCheckCount = 0U;
void Sys_100ms_Tasks(void)
{
// if(PageType == Page_Time)
// {
// RTE_RTC_Get_CounterValue(&counter_val);
// counter_val.time.RTC_Hours = RTC_Bcd2ToByte(counter_val.time.RTC_Hours);
// counter_val.time.RTC_Minutes = RTC_Bcd2ToByte(counter_val.time.RTC_Minutes);
// }
BackLight_Process();
Interact_Light_Process();
// Services_Mileage_Callback();
S3_ServerCNTT();
if (u8LEDDriverCheckCount >= 10U)
......
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