Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IVECO_NS216
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
时昊
IVECO_NS216
Commits
effe29e4
Commit
effe29e4
authored
Jan 04, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除ABS和EBD指示灯
parent
c2b0bb9c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
103 deletions
+0
-103
Telltales_user.c
source/Appliciation/Telltales_user.c
+0
-103
No files found.
source/Appliciation/Telltales_user.c
View file @
effe29e4
...
...
@@ -505,121 +505,18 @@ void LED_TurnLeft_Lamp_Exec(Tellib_uint16_t led_status)
Tellib_uint16_t
LED_ABS_Lamp_Judge
(
void
)
{
Tellib_uint16_t
res
=
0u
;
if
(
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_can0A18A006_Msg_Count
)
==
CAN_SIG_LOST
)
&&
(
Common_GetIgnOnTime
()
>=
8000
))
{
res
=
2u
;
}
else
{
if
(
Get_CAN_CH0_ID_0A18A006_Sig_AbsFail
()
==
1
)
{
res
=
1u
;
}
else
{
res
=
0u
;
}
}
return
res
;
}
void
LED_ABS_Lamp_Exec
(
Tellib_uint16_t
led_status
)
{
if
(
Get_DIAG_TelltalesCtrlsts
()
==
3
)
{
if
(
LEDContrl
.
_3F80
.
ABSAlarm
==
1
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
LED_Attr
[
LED_ABS_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
0
);
}
}
else
{
if
(
led_status
==
2u
)
{
if
(
g_LED
.
LedBlink_1_5HZ
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
LED_Attr
[
LED_ABS_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
0
);
}
}
else
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
LED_Attr
[
LED_ABS_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_ABS_Lamp
].
chip
,
LED_Attr
[
LED_ABS_Lamp
].
channel
,
0
);
}
}
}
Tellib_uint16_t
LED_EBD_Lamp_Judge
(
void
)
{
Tellib_uint16_t
res
=
0u
;
if
((
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_can0A18A006_Msg_Count
)
==
CAN_SIG_LOST
)
&&
(
Common_GetIgnOnTime
()
>=
8000
))
{
res
=
2u
;
}
else
{
if
(
Get_CAN_CH0_ID_0A18A006_Sig_EbdFail
()
==
1
)
{
res
=
1u
;
}
else
{
res
=
0u
;
}
}
return
res
;
}
void
LED_EBD_Lamp_Exec
(
Tellib_uint16_t
led_status
)
{
if
(
Get_DIAG_TelltalesCtrlsts
()
==
3
)
{
if
(
LEDContrl
.
_3F80
.
EBDAlarm
==
1
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_EBD_Lamp
].
chip
,
LED_Attr
[
LED_EBD_Lamp
].
channel
,
LED_Attr
[
LED_EBD_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_EBD_Lamp
].
chip
,
LED_Attr
[
LED_EBD_Lamp
].
channel
,
0
);
}
}
else
{
if
(
led_status
==
2u
)
{
if
(
g_LED
.
LedBlink_1_5HZ
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_EBD_Lamp
].
chip
,
LED_Attr
[
LED_EBD_Lamp
].
channel
,
LED_Attr
[
LED_EBD_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_EBD_Lamp
].
chip
,
LED_Attr
[
LED_EBD_Lamp
].
channel
,
0
);
}
}
else
if
(
led_status
==
1u
)
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_EBD_Lamp
].
chip
,
LED_Attr
[
LED_EBD_Lamp
].
channel
,
LED_Attr
[
LED_EBD_Lamp
].
brightness
);
}
else
{
LED_Driver_Channel_Set
(
LED_Attr
[
LED_EBD_Lamp
].
chip
,
LED_Attr
[
LED_EBD_Lamp
].
channel
,
0
);
}
}
}
Tellib_uint16_t
LED_EngWaitToStart_Lamp_Judge
(
void
)
{
...
...
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