Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
RT_RMR42E
Commits
7539115a
Commit
7539115a
authored
Jul 14, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:51223 【润通草地车】【档位】当0x125信号MMCU_PowerMode=1,在发送档位信号,仅P挡闪烁,,且档位边框常显
parent
89ce4066
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
309 additions
and
355 deletions
+309
-355
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+4
-0
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+305
-354
Telltales_user.h
Firmware/Source/Component/Telltales/Telltales_user.h
+0
-1
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
7539115a
...
...
@@ -67,6 +67,10 @@ void Gauge_Gears_Display(void)
{
SEG_SET_GEAR
(
1
,
Signal1
,
0
);
}
else
{
SEG_SET_GEAR
(
1
,
Gear_OFF
,
0
);
}
}
else
{
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
7539115a
...
...
@@ -45,8 +45,6 @@ static Tellib_uint16_t LED_Tire_pressure_F_Judgement(void);
static
void
LED_Tire_pressure_F_Execution
(
Tellib_uint16_t
led_status
);
static
Tellib_uint16_t
LED_Tire_pressure_R_Judgement
(
void
);
static
void
LED_Tire_pressure_R_Execution
(
Tellib_uint16_t
led_status
);
static
Tellib_uint16_t
LED_Gears_Judgement
(
void
);
static
void
LED_Gears_Execution
(
Tellib_uint16_t
led_status
);
static
Tellib_uint16_t
LED_Cutterhead_Gear_Judgement
(
void
);
static
void
LED_Cutterhead_Gear_Execution
(
Tellib_uint16_t
led_status
);
static
Tellib_uint16_t
LED_Working_Hours_One_Judgement
(
void
);
...
...
@@ -65,40 +63,38 @@ static void LED_Charging_Connection_R_Execution(Tellib_uint16_t led_s
static
Tellib_uint16_t
LED_Power_Battery_Failure_R_Judgement
(
void
);
static
void
LED_Power_Battery_Failure_R_Execution
(
Tellib_uint16_t
led_status
);
uint8_t
u8CanId401Flag
=
0
;
const
LED_Attribute_st
LED_Attribute
[
LED_Max
]
=
{
const
LED_Attribute_st
LED_Attribute
[
LED_Max
]
=
{
/* 指示灯索引 是否自检 外部信号自检 工作电源状态 自检开始时间 自检持续时间 指示灯点亮条件 指示灯执行函数 */
{
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
},
{
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_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
];
Tellib_uint8_t
Tel_Mem
[
Tel_MEM_Block_Size
*
LED_Max
+
Tel_MEM_Block_Addition
];
uint8_t
PowerSts_num
;
void
Telltales_Init
(
void
)
{
...
...
@@ -112,14 +108,13 @@ void Telltales_Init(void)
Telltales_KL30_Wakeup_Init
(
Tel_Mem
,
LED_Attribute
,
&
m_ExtPara
);
}
void
Can_ID_401
(
uint8_t
CopyData
[])
void
Can_ID_401
(
uint8_t
CopyData
[])
{
u8CanId401Flag
=
1
;
}
static
Tellib_uint16_t
LED_EFI_failure_Judgement
(
void
)
{
static
Tellib_uint16_t
LED_EFI_failure_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
// if (Line_In_Get_Status(LINE_IN_HighBeam))
// {
...
...
@@ -130,10 +125,10 @@ void Can_ID_401(uint8_t CopyData [])
// LED_STATE = 0;
// }
return
LED_STATE
;
}
}
static
void
LED_EFI_failure_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -159,7 +154,7 @@ static Tellib_uint16_t LED_Fuel_Alarm_Judgement(void)
}
static
void
LED_Fuel_Alarm_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -185,7 +180,7 @@ static Tellib_uint16_t LED_Lead_Acid_Battery_Failure_Judgement(void)
}
static
void
LED_Lead_Acid_Battery_Failure_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -211,7 +206,7 @@ static Tellib_uint16_t LED_Oil_Pressure_Judgement(void)
}
static
void
LED_Oil_Pressure_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -237,16 +232,16 @@ static Tellib_uint16_t LED_Grass_Full_Judgement(void)
}
static
void
LED_Grass_Full_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_00_Grass_Full_R
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Chloramine
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Chloramine
,
1
);
// SEG_SET_LED_STS(1,1);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_00_Grass_Full_R
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Chloramine
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Chloramine
,
0
);
}
}
static
Tellib_uint16_t
LED_OVERLOAD_Judgement
(
void
)
...
...
@@ -266,15 +261,15 @@ static Tellib_uint16_t LED_OVERLOAD_Judgement(void)
}
static
void
LED_OVERLOAD_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_13_OVERLOAD_R
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Overload
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Overload
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_13_OVERLOAD_R
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Overload
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Overload
,
0
);
}
}
static
Tellib_uint16_t
LED_READY_Judgement
(
void
)
...
...
@@ -293,15 +288,15 @@ static Tellib_uint16_t LED_READY_Judgement(void)
}
static
void
LED_READY_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_10_READY_G
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Ready
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Ready
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_10_READY_G
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Ready
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Ready
,
0
);
}
}
static
Tellib_uint16_t
LED_Seat_Detection_Judgement
(
void
)
...
...
@@ -320,22 +315,22 @@ static Tellib_uint16_t LED_Seat_Detection_Judgement(void)
}
static
void
LED_Seat_Detection_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_12_Seat_Detection_W
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Seat_Detection
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Seat_Detection
,
1
);
}
else
{
if
(
FLASH_SYNC_1Hz
&&
openLED_flag
)
if
(
FLASH_SYNC_1Hz
&&
openLED_flag
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_12_Seat_Detection_W
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Seat_Detection
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Seat_Detection
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_12_Seat_Detection_W
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Seat_Detection
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Seat_Detection
,
0
);
}
// SEG_SET_LED_STS(1,0);
}
...
...
@@ -356,15 +351,15 @@ static Tellib_uint16_t LED_Key_Access_Judgement(void)
}
static
void
LED_Key_Access_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_11_Key_Access_W
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Key_Access
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Key_Access
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_11_Key_Access_W
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Key_Access
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Key_Access
,
0
);
}
}
static
Tellib_uint16_t
LED_Battery_Charging_Judgement
(
void
)
...
...
@@ -373,15 +368,15 @@ static Tellib_uint16_t LED_Battery_Charging_Judgement(void)
Tellib_uint8_t
Signal1
=
Get_CAN_Num_MBMS_TOTALSigAcc
();
Tellib_uint8_t
Signal2
=
Get_CAN_Num_MBMS_TOTALSigCharge
();
Tellib_uint8_t
Signal3
=
Get_CAN_Power_State
();
if
((
Get_CAN_Power_State
()
!=
PKEY_ON
)
&&
(
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
Get_CAN_Power_State
()
!=
POWER_CHECK_NULL
))
if
((
Get_CAN_Power_State
()
!=
PKEY_ON
)
&&
(
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
Get_CAN_Power_State
()
!=
POWER_CHECK_NULL
))
{
if
(((
Signal1
==
0x1
)
||
(
Signal1
==
0x0
)
)
&&
(
Signal2
==
0X1
))
if
(((
Signal1
==
0x1
)
||
(
Signal1
==
0x0
))
&&
(
Signal2
==
0X1
))
{
if
((
Signal3
==
CHRG_PLUGIN
)
||
(
Signal3
==
CHRGEND
))
if
((
Signal3
==
CHRG_PLUGIN
)
||
(
Signal3
==
CHRGEND
))
{
LED_STATE
=
2
;
}
else
if
(
Signal3
==
CHRGING
)
else
if
(
Signal3
==
CHRGING
)
{
LED_STATE
=
1
;
}
...
...
@@ -396,28 +391,28 @@ static Tellib_uint16_t LED_Battery_Charging_Judgement(void)
}
static
void
LED_Battery_Charging_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_08_Battery_Charging_W
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
1
);
}
else
if
(
led_status
==
2u
)
else
if
(
led_status
==
2u
)
{
if
(
FLASH_SYNC_1Hz
)
if
(
FLASH_SYNC_1Hz
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_08_Battery_Charging_W
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_08_Battery_Charging_W
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
0
);
}
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_08_Battery_Charging_W
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Recharge
,
0
);
}
}
// static Tellib_uint16_t LED_Battery_Charging_POWEROFF_Judgement(void)
...
...
@@ -450,7 +445,7 @@ static Tellib_uint16_t LED_Cutterhead_Switch_Judgement(void)
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint8_t
Signal1
=
Get_CAN_Num_BMCU_PTOSwicthState
();
if
((
Signal1
==
0x1
)
&&
openLED_flag
)
if
((
Signal1
==
0x1
)
&&
openLED_flag
)
{
LED_STATE
=
1
;
}
...
...
@@ -462,25 +457,21 @@ static Tellib_uint16_t LED_Cutterhead_Switch_Judgement(void)
}
static
void
LED_Cutterhead_Switch_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_14_Cutterhead_Switch_W
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Head_switch
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Head_switch
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_14_Cutterhead_Switch_W
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Head_switch
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Cutter_Head_switch
,
0
);
}
}
static
Tellib_uint16_t
LED_GEAR_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint8_t
Signal1
=
Get_CAN_Num_MMCU_TravelSpeedGear
();
Tellib_uint8_t
Signal2
=
Get_CAN_Num_MMCU_ParkingGearState
();
if
((
Signal2
!=
0x1
)
&&
(
Charge_OFF_Flag
==
0
)
&&
(
System_Indicator_CANFlag
!=
1
))
{
if
((
Signal1
==
0x1
)
||
(
Signal1
==
0x2
))
if
((
Charge_OFF_Flag
==
0
)
&&
(
System_Indicator_CANFlag
!=
1
))
{
LED_STATE
=
1
;
}
...
...
@@ -488,16 +479,10 @@ static Tellib_uint16_t LED_GEAR_Judgement(void)
{
LED_STATE
=
0
;
}
}
else
if
((
Charge_OFF_Flag
==
0
)
&&
(
System_Indicator_CANFlag
!=
1
))
{
LED_STATE
=
1
;
}
return
LED_STATE
;
}
static
void
LED_GEAR_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_04_GEAR_W
,
LED_ON
);
}
...
...
@@ -522,7 +507,7 @@ static Tellib_uint16_t LED_External_Discharge_Judgement(void)
}
static
void
LED_External_Discharge_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -548,7 +533,7 @@ static Tellib_uint16_t LED_Engine_Works_Judgement(void)
}
static
void
LED_Engine_Works_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -601,15 +586,15 @@ static Tellib_uint16_t LED_LED_Open_Judgement(void)
}
static
void
LED_LED_Open_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_21_LED_Open_W
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_Distance_Light
,
1
);
SEG_SET_LED_STS
(
SEG_LED_Distance_Light
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_21_LED_Open_W
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_Distance_Light
,
0
);
SEG_SET_LED_STS
(
SEG_LED_Distance_Light
,
0
);
}
}
static
Tellib_uint16_t
LED_Cruise_Control_Judgement
(
void
)
...
...
@@ -627,7 +612,7 @@ static Tellib_uint16_t LED_Cruise_Control_Judgement(void)
}
static
void
LED_Cruise_Control_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -653,7 +638,7 @@ static Tellib_uint16_t LED_Tire_pressure_F_Judgement(void)
}
static
void
LED_Tire_pressure_F_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -679,7 +664,7 @@ static Tellib_uint16_t LED_Tire_pressure_R_Judgement(void)
}
static
void
LED_Tire_pressure_R_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -690,49 +675,15 @@ static void LED_Tire_pressure_R_Execution(Tellib_uint16_t led_status)
// SEG_SET_LED_STS(1,0);
}
}
static
Tellib_uint16_t
LED_Gears_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint8_t
Signal1
=
Get_CAN_Num_MMCU_TravelSpeedGear
();
Tellib_uint8_t
Signal2
=
Get_CAN_Num_MMCU_ParkingGearState
();
if
((
Signal2
!=
0x1
)
&&
openLED_flag
)
{
if
((
Signal1
==
0x1
)
||
(
Signal1
==
0x2
))
{
LED_STATE
=
1
;
}
else
{
LED_STATE
=
0
;
}
}
else
{
LED_STATE
=
0
;
}
return
LED_STATE
;
}
static
void
LED_Gears_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_05_Gears_W
,
LED_ON
);
// SEG_SET_LED_STS(1,1);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_05_Gears_W
,
LED_OFF
);
// SEG_SET_LED_STS(1,0);
}
}
static
Tellib_uint16_t
LED_Cutterhead_Gear_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint8_t
Signal1
=
Get_CAN_Num_BMCU_BladeSpeedGear
();
Tellib_uint8_t
Signal2
=
Get_CAN_Num_BMCU_ErrorGrage
();
if
(((
Signal2
==
0x1
)
||
(
Signal2
==
0x2
)
||
(
Signal2
==
0x3
)
||
(
Signal2
==
0x4
))
&&
openLED_flag
)
if
(((
Signal2
==
0x1
)
||
(
Signal2
==
0x2
)
||
(
Signal2
==
0x3
)
||
(
Signal2
==
0x4
))
&&
openLED_flag
)
{
if
((
Signal1
==
0x1
)
||
(
Signal1
==
0x2
)
||
(
Signal1
==
0x3
))
if
((
Signal1
==
0x1
)
||
(
Signal1
==
0x2
)
||
(
Signal1
==
0x3
))
{
LED_STATE
=
2
;
}
...
...
@@ -743,7 +694,7 @@ static Tellib_uint16_t LED_Cutterhead_Gear_Judgement(void)
}
else
if
((
Signal2
==
0x0
)
&&
openLED_flag
)
{
if
((
Signal1
==
0x1
)
||
(
Signal1
==
0x2
)
||
(
Signal1
==
0x3
))
if
((
Signal1
==
0x1
)
||
(
Signal1
==
0x2
)
||
(
Signal1
==
0x3
))
{
LED_STATE
=
1
;
}
...
...
@@ -756,14 +707,14 @@ static Tellib_uint16_t LED_Cutterhead_Gear_Judgement(void)
}
static
void
LED_Cutterhead_Gear_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_15_Cutterhead_Gear_W
,
LED_ON
);
// SEG_SET_LED_STS(1,1);
}
else
if
(
led_status
==
2u
)
else
if
(
led_status
==
2u
)
{
if
(
FLASH_SYNC_1Hz
)
if
(
FLASH_SYNC_1Hz
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_15_Cutterhead_Gear_W
,
LED_ON
);
}
...
...
@@ -793,7 +744,7 @@ static Tellib_uint16_t LED_Working_Hours_One_Judgement(void)
}
static
void
LED_Working_Hours_One_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_31_Working_Hours_One_W
,
LED_ON
);
}
...
...
@@ -817,7 +768,7 @@ static Tellib_uint16_t LED_Fault_Codes_Judgement(void)
}
static
void
LED_Fault_Codes_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -835,7 +786,7 @@ static Tellib_uint16_t LED_SystIndicator_R_Judgement(void)
Tellib_uint8_t
Signal1
=
Get_CAN_Num_MMCU_ErrorGrage
();
Tellib_uint8_t
Signal2
=
Get_CAN_Num_SMCU_ErrorGrage
();
Tellib_uint8_t
Signal3
=
System_Indicator_CANFlag
;
if
(((
Signal1
==
0x4
)
||
(
Signal1
==
0x5
)
||
(
Signal2
==
0x4
)
||
(
Signal2
==
0x5
)
||
(
Signal3
==
1
)))
if
(((
Signal1
==
0x4
)
||
(
Signal1
==
0x5
)
||
(
Signal2
==
0x4
)
||
(
Signal2
==
0x5
)
||
(
Signal3
==
1
)))
{
LED_STATE
=
1
;
...
...
@@ -848,30 +799,32 @@ static Tellib_uint16_t LED_SystIndicator_R_Judgement(void)
}
static
void
LED_SystIndicator_R_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
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
);
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
);
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_Num_MMCU_ParkingGearState
();
Tellib_uint8_t
Signal2
=
Get_CAN_Power_State
();
if
(
(
Signal1
==
0x1
)
&&
openLED_flag
&&
(
checkself_seg_Flag
==
0
)
)
if
(
checkself_seg_Flag
==
0
)
{
LED_STATE
=
1
;
}
else
if
((
Signal2
==
PKEY_ON
)
&&
(
checkself_seg_Flag
==
0
))
if
((
Signal2
==
PKEY_ON
))
{
LED_STATE
=
2
;
}
else
if
(
openLED_flag
)
{
LED_STATE
=
1
;
}
}
else
{
LED_STATE
=
0
;
...
...
@@ -880,14 +833,13 @@ static Tellib_uint16_t LED_P_GEAR_G_Judgement(void)
}
static
void
LED_P_GEAR_G_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_05_Gears_W
,
LED_ON
);
SEG_SET_GEAR
(
1
,
Gear_P
,
0
);
}
else
if
(
led_status
==
2u
)
else
if
(
led_status
==
2u
)
{
if
(
FLASH_SYNC_1Hz
)
if
(
FLASH_SYNC_1Hz
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_05_Gears_W
,
LED_ON
);
SEG_SET_GEAR
(
1
,
Gear_P
,
0
);
...
...
@@ -898,10 +850,9 @@ static void LED_P_GEAR_G_Execution(Tellib_uint16_t led_status)
SEG_SET_GEAR
(
1
,
Gear_OFF
,
0
);
}
}
else
if
(
checkself_seg_Flag
==
0
)
else
if
(
checkself_seg_Flag
==
0
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_05_Gears_W
,
LED_OFF
);
SEG_SET_GEAR
(
0
,
Gear_P
,
0
);
}
}
static
Tellib_uint16_t
LED_Fuel_Alarm_W_Judgement
(
void
)
...
...
@@ -919,7 +870,7 @@ static Tellib_uint16_t LED_Fuel_Alarm_W_Judgement(void)
}
static
void
LED_Fuel_Alarm_W_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
// LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Key_ISTOP, LED_ON);
// SEG_SET_LED_STS(1,1);
...
...
@@ -934,7 +885,7 @@ static Tellib_uint16_t LED_Charging_Connection_R_Judgement(void)
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint8_t
Signal1
=
Get_CAN_Num_MBMS_StatBattChargeState
();
if
(((
Signal1
==
0x1
)
||
(
Signal1
==
0x2
)
||
(
Signal1
==
0x3
))
&&
((
Get_CAN_Power_State
()
!=
PKEY_ON
)
&&
(
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
Get_CAN_Power_State
()
!=
POWER_CHECK_NULL
)))
if
(((
Signal1
==
0x1
)
||
(
Signal1
==
0x2
)
||
(
Signal1
==
0x3
))
&&
((
Get_CAN_Power_State
()
!=
PKEY_ON
)
&&
(
Get_CAN_Power_State
()
!=
KEY_OFF
)
&&
(
Get_CAN_Power_State
()
!=
POWER_CHECK_NULL
)))
{
LED_STATE
=
1
;
}
...
...
@@ -946,15 +897,15 @@ static Tellib_uint16_t LED_Charging_Connection_R_Judgement(void)
}
static
void
LED_Charging_Connection_R_Execution
(
Tellib_uint16_t
led_status
)
{
if
(
led_status
==
1u
)
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_32_Charging_Connection_R
,
LED_ON
);
SEG_SET_LED_STS
(
SEG_LED_HHT_Charger
,
1
);
SEG_SET_LED_STS
(
SEG_LED_HHT_Charger
,
1
);
}
else
{
LED_Driver_Channel_Set
(
LampChannel_0
,
LampCh0_32_Charging_Connection_R
,
LED_OFF
);
SEG_SET_LED_STS
(
SEG_LED_HHT_Charger
,
0
);
SEG_SET_LED_STS
(
SEG_LED_HHT_Charger
,
0
);
}
}
...
...
Firmware/Source/Component/Telltales/Telltales_user.h
View file @
7539115a
...
...
@@ -26,7 +26,6 @@ typedef enum
em_LED_Cruise_Control_W
,
em_LED_Tire_pressure_F_W
,
em_LED_Tire_pressure_R_W
,
em_LED_Gears_W
,
em_LED_Cutterhead_Gear_W
,
em_LED_Working_Hours_One_W
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment