Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
07941aac
Commit
07941aac
authored
8 months ago
by
王雅楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复左右转向灯、远光灯、ABS、自动启停灯、E/S灯逻辑
parent
c687d816
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
80 deletions
+79
-80
Line_In_user.c
Firmware/Source/Component/Line_In/Line_In_user.c
+2
-2
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+77
-78
No files found.
Firmware/Source/Component/Line_In/Line_In_user.c
View file @
07941aac
...
...
@@ -8,8 +8,8 @@ const Line_In_Attribute_st g_stLineInAttribute[LINE_IN_MAX] =
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Turn_Left
,
},
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Turn_Right
,
},
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
60U
,
20U
,
Get_LINE_IN_High_Beam
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
100U
,
20U
,
Get_LINE_IN_Efi_Fault
,
},
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_ABS
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
100U
,
20U
,
Get_LINE_IN_Efi_Fault
,
},
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_ABS
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Auto_Start_Stop
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Oil_Pressure_Alert
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Voltage
,
},
...
...
This diff is collapsed.
Click to expand it.
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
07941aac
...
...
@@ -56,7 +56,6 @@ const LED_Attribute_st LED_Attribute [ LED_Max ] = {
{
em_LED_WIFI
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_WIFI_Judgement
,
LED_WIFI_Execution
},
{
em_LED_Bluetooth
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_Bluetooth_Judgement
,
LED_Bluetooth_Execution
},
{
em_LED_E
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_E_Judgement
,
LED_E_Execution
},
{
em_LED_S
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_S_Judgement
,
LED_S_Execution
},
};
Tellib_uint8_t
Tel_Mem
[
Tel_MEM_Block_Size
*
LED_Max
+
Tel_MEM_Block_Addition
];
void
Telltales_Init
(
void
)
...
...
@@ -139,13 +138,13 @@ static void LED_High_Beam_Execution(Tellib_uint16_t led_status)
static
Tellib_uint16_t
LED_Efi_Fault_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Efi_Fault
))
if
(
Line_In_Get_Status
(
LINE_IN_Efi_Fault
)
==
0u
)
{
LED_STATE
=
1
;
LED_STATE
=
1
u
;
}
else
{
LED_STATE
=
0
;
LED_STATE
=
0
u
;
}
return
LED_STATE
;
}
...
...
@@ -159,13 +158,13 @@ static void LED_Efi_Fault_Execution(Tellib_uint16_t led_status)
static
Tellib_uint16_t
LED_ABS_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_ABS
))
if
(
Line_In_Get_Status
(
LINE_IN_ABS
)
==
0
)
{
LED_STATE
=
1
;
LED_STATE
=
0
;
}
else
{
LED_STATE
=
0
;
LED_STATE
=
1
;
}
return
LED_STATE
;
}
...
...
@@ -178,7 +177,7 @@ static void LED_ABS_Execution(Tellib_uint16_t led_status)
static
Tellib_uint16_t
LED_Auto_Start_Stop_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Auto_Start_Stop
))
if
(
Line_In_Get_Status
(
LINE_IN_Auto_Start_Stop
)
==
0
)
{
LED_STATE
=
1
;
}
...
...
@@ -198,7 +197,7 @@ static void LED_Auto_Start_Stop_Execution(Tellib_uint16_t led_status)
static
Tellib_uint16_t
LED_Oil_Pressure_Alert_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Oil_Pressure_Alert
))
if
(
Line_In_Get_Status
(
LINE_IN_Oil_Pressure_Alert
)
==
0
)
{
LED_STATE
=
1
;
}
...
...
@@ -213,8 +212,10 @@ static void LED_Oil_Pressure_Alert_Execution(Tellib_uint16_t led_status)
}
/*CAN信号来源:TCS_37B*/
/*
*@name:TCS指示灯
*@return: 0-都不亮 1-TCS亮 2-TCS/亮 3-TCS闪烁
*/
static
Tellib_uint16_t
LED_TCS_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
...
...
@@ -224,14 +225,28 @@ static Tellib_uint16_t LED_TCS_Judgement(void)
}
else
{
if
(
Get_CAN_CH0_ID_37B_Sig_TCS_Warning_Lamp
()
==
1
)
{
LED_STATE
=
1u
;
}
else
{
LED_STATE
=
0u
;
}
if
(
Get_CAN_CH0_ID_37B_Sig_TCS_Work_Mode
==
0x0
)
{
if
(
Get_CAN_CH0_ID_37B_Sig_TCS_Warning_Lamp
()
==
0x1
)
{
LED_STATE
=
1u
;
/*TCS灯亮*/
}
else
{
LED_STATE
=
0u
;
/*都不亮*/
}
}
else
{
if
(
Get_CAN_CH0_ID_37B_Sig_TCS_Warning_Lamp
()
==
0x1
)
{
LED_STATE
=
2u
;
/*TCS/亮*/
}
else
{
;
}
}
}
return
LED_STATE
;
}
...
...
@@ -241,7 +256,9 @@ static void LED_TCS_Execution(Tellib_uint16_t led_status)
}
/*信号来源:ISG_111*/
/*
*信号来源:ISG_111
*/
static
Tellib_uint16_t
LED_HEV_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
...
...
@@ -251,20 +268,24 @@ static Tellib_uint16_t LED_HEV_Judgement(void)
}
else
{
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Ready
()
==
0x01UL
)
{
LED_STATE
=
1u
;
}
else
{
LED_STATE
=
0u
;
}
if
((
Get_CAN_CH0_ID_111_Sig_ISG_Ready
()
==
0x01UL
)
||
((
Get_CAN_CH0_ID_111_Sig_ISG_Power
()
==
1u
)
&&
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
0u
)))
{
LED_STATE
=
1u
;
}
else
if
((
Get_CAN_CH0_ID_111_Sig_ISG_Ready
()
==
0UL
)
||
(
Get_CAN_CH0_ID_111_Sig_ISG_Power
()
==
0u
)
||
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
0u
))
{
LED_STATE
=
0u
;
}
else
{
LED_STATE
=
0u
;
}
}
return
LED_STATE
;
}
static
void
LED_HEV_Execution
(
Tellib_uint16_t
led_status
)
{
;
}
...
...
@@ -284,7 +305,7 @@ static Tellib_uint16_t LED_Voltage_Judgement(void)
}
static
void
LED_Voltage_Execution
(
Tellib_uint16_t
led_status
)
{
;
}
...
...
@@ -314,7 +335,15 @@ static Tellib_uint16_t LED_Coolant_Temperature_Judgement(void)
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_101_Msg_Count
)
==
CAN_SIG_LOST
)
{
LED_STATE
=
0u
;
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Coolant_Temperature
))
{
LED_STATE
=
1u
;
}
else
{
LED_STATE
=
0u
;
}
}
else
{
...
...
@@ -324,14 +353,7 @@ static Tellib_uint16_t LED_Coolant_Temperature_Judgement(void)
}
else
{
if
(
Line_In_Get_Status
(
LINE_IN_Voltage
))
{
LED_STATE
=
1u
;
}
else
{
LED_STATE
=
0u
;
}
LED_STATE
=
0u
;
}
}
return
LED_STATE
;
...
...
@@ -342,7 +364,7 @@ static void LED_Coolant_Temperature_Execution(Tellib_uint16_t led_status)
}
/*
无
*/
/*
wifi
*/
static
Tellib_uint16_t
LED_WIFI_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
/*设置为常灭*/
...
...
@@ -350,10 +372,10 @@ static Tellib_uint16_t LED_WIFI_Judgement(void)
}
static
void
LED_WIFI_Execution
(
Tellib_uint16_t
led_status
)
{
;
}
/*
信号来源:蓝牙模块
*/
/*
bluetooth
*/
static
Tellib_uint16_t
LED_Bluetooth_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
...
...
@@ -361,10 +383,15 @@ static Tellib_uint16_t LED_Bluetooth_Judgement(void)
}
static
void
LED_Bluetooth_Execution
(
Tellib_uint16_t
led_status
)
{
;
}
/*信号来源:0x111*/
/*
* E S指示灯
*信号来源:0x111
* 0-都不亮 1-E亮 2-S亮
*/
static
Tellib_uint16_t
LED_E_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
...
...
@@ -376,10 +403,14 @@ static Tellib_uint16_t LED_E_Judgement(void)
{
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Power
()
==
0x01UL
)
{
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
1
)
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
1
u
)
{
LED_STATE
=
1u
;
}
else
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
2u
)
{
LED_STATE
=
2u
;
}
else
{
LED_STATE
=
0u
;
...
...
@@ -394,38 +425,6 @@ static Tellib_uint16_t LED_E_Judgement(void)
}
static
void
LED_E_Execution
(
Tellib_uint16_t
led_status
)
{
;
}
/*信号来源:0x111*/
static
Tellib_uint16_t
LED_S_Judgement
(
void
)
{
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_111_Msg_Count
)
==
CAN_SIG_LOST
)
{
LED_STATE
=
0u
;
}
else
{
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Power
()
==
0x01UL
)
{
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
0x2UL
)
{
LED_STATE
=
1u
;
}
else
{
LED_STATE
=
0u
;
}
}
else
{
LED_STATE
=
0u
;
}
}
return
LED_STATE
;
}
static
void
LED_S_Execution
(
Tellib_uint16_t
led_status
)
{
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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