Commit 04a7f274 authored by 陈家乐's avatar 陈家乐

Merge branch 'dev' of http://tyw-server.synology.me:12345/ty/tianying_ty100 into CHENJIALE

parents 218fc39b 4decc8ed
...@@ -322,11 +322,11 @@ void Data_Coolant_Temp_Display ( void ) ...@@ -322,11 +322,11 @@ void Data_Coolant_Temp_Display ( void )
} }
else else
{ {
if (DataCoolantTemp.Value >= 115) if (GET_DataCoolantSegValue() >= 115)
{ {
DataCoolantTemp_Dis.u8_Warnflg = 2; DataCoolantTemp_Dis.u8_Warnflg = 2;
} }
else if (DataCoolantTemp.Value <= 112) else if (GET_DataCoolantSegValue() <= 112)
{ {
DataCoolantTemp_Dis.u8_Warnflg = 0; DataCoolantTemp_Dis.u8_Warnflg = 0;
} }
......
...@@ -50,9 +50,10 @@ static void Power_KL30_Init(void) ...@@ -50,9 +50,10 @@ static void Power_KL30_Init(void)
eeprom_StoreInfo_Init(); eeprom_StoreInfo_Init();
Can_Init(); Can_Init();
Data_TPMS_KL30_Init ();
CAN_TX_Count_Init(); CAN_TX_Count_Init();
CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Enable); CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Enable);
Data_TPMS_KL30_Init ();
DFlash_init(); DFlash_init();
Data_Read_DiagPara(); Data_Read_DiagPara();
...@@ -75,7 +76,7 @@ static void Power_KL30_Init(void) ...@@ -75,7 +76,7 @@ static void Power_KL30_Init(void)
Fuel_KL30_Init(); Fuel_KL30_Init();
Data_Voltage_Init(); Data_Voltage_Init();
// TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400, 64000000); // TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400, 64000000);
TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 400, 64000000); TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 1260, 64000000);
// TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400); // TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400);
// TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 400); // TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 400);
// TimerM_PWM_CH_Output_init(TIMERM_COUNTER0, TIMERM_CHB, ActiveLevel_High); // TimerM_PWM_CH_Output_init(TIMERM_COUNTER0, TIMERM_CHB, ActiveLevel_High);
...@@ -132,7 +133,7 @@ static void Power_Wakeup_Init(void) ...@@ -132,7 +133,7 @@ static void Power_Wakeup_Init(void)
Fuel_KL30_Init(); Fuel_KL30_Init();
Data_Voltage_Init(); Data_Voltage_Init();
// TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400, 64000000); // TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400, 64000000);
TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 400, 64000000); TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 1260, 64000000);
// TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400); // TimerM_PWM_counter_Output_Init(TIMERM_COUNTER0, 400);
// TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 400); // TimerM_PWM_counter_Output_Init(TIMERM_COUNTER1, 400);
// TimerM_PWM_CH_Output_init(TIMERM_COUNTER0, TIMERM_CHB, ActiveLevel_High); // TimerM_PWM_CH_Output_init(TIMERM_COUNTER0, TIMERM_CHB, ActiveLevel_High);
......
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