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
f999a532
Commit
f999a532
authored
Feb 11, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🌈
style:优化指示灯数组效果
parent
b0cebb4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
29 deletions
+30
-29
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+30
-29
No files found.
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
f999a532
...
...
@@ -63,35 +63,36 @@ static void LED_Charging_Connection_R_Execution(Tellib_uint16_t led_status);
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
]
=
{
/* 指示灯索引 是否自检 外部信号自检 工作电源状态 自检开始时间 自检持续时间 指示灯点亮条件 指示灯执行函数 */
{
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
},
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_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
];
...
...
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