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
fda8cabd
Commit
fda8cabd
authored
Aug 29, 2024
by
王金亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:56528 【豪进7500TFT】请确认,读取内部版本号无策略是否需要更改
增加(5s内接入五次远光灯)才能读取版本号策略
parent
5a83f239
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
6 deletions
+55
-6
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+5
-5
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+38
-0
Telltales_user.h
Firmware/Source/Component/Telltales/Telltales_user.h
+5
-0
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+1
-0
UDS_ISO14229_Server.c
Firmware/Source/UDS/UDS_ISO14229_Server.c
+6
-1
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
View file @
fda8cabd
...
...
@@ -978,11 +978,6 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\PicBin.h
</FilePath>
</File>
<File>
<FileName>
kei_S1.0.5_20240822.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\kei_S1.0.5_20240822.lib
</FilePath>
</File>
<File>
<FileName>
UartProtocol.h
</FileName>
<FileType>
5
</FileType>
...
...
@@ -1018,6 +1013,11 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\System_Monitor\System_Monitor_User.h
</FilePath>
</File>
<File>
<FileName>
kei_S1.0.5_20240822.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\kei_S1.0.5_20240822.lib
</FilePath>
</File>
</Files>
</Group>
<Group>
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
fda8cabd
...
...
@@ -471,3 +471,41 @@ static void LED_E_Execution(Tellib_uint16_t led_status)
;
}
Tellib_uint8_t
g_u8UDSreadprec
=
0U
;
Tellib_uint8_t
g_u8UDSreadprec_flag
=
0U
;
Tellib_uint16_t
g_u16UDSreadprec_time
=
0U
;
void
UDS_Read_Preconditions
(
void
)
{
if
(
g_u8UDSreadprec
>
0
)
{
g_u16UDSreadprec_time
++
;
}
if
(
Get_TelltalesLedSts
(
em_LED_High_Beam
))
{
if
(
g_u8UDSreadprec_flag
==
0U
)
{
g_u8UDSreadprec_flag
=
1U
;
}
}
else
{
if
(
g_u8UDSreadprec_flag
==
1U
)
{
g_u8UDSreadprec_flag
=
0U
;
if
(
g_u8UDSreadprec
<
5U
)
{
g_u8UDSreadprec
++
;
}
}
}
if
(
g_u8UDSreadprec
<
5
)
{
if
(
g_u16UDSreadprec_time
>
100U
)
{
g_u16UDSreadprec_time
=
0U
;
g_u8UDSreadprec
=
0U
;
}
}
}
Firmware/Source/Component/Telltales/Telltales_user.h
View file @
fda8cabd
...
...
@@ -26,4 +26,9 @@ typedef enum
extern
Tellib_uint8_t
Auto_Start_Stop
;
void
Telltales_Init
(
void
);
Tellib_uint8_t
Telltales_Voltage_Date
(
void
);
extern
Tellib_uint8_t
g_u8UDSreadprec
;
extern
Tellib_uint16_t
g_u16UDSreadprec_time
;
extern
void
UDS_Read_Preconditions
(
void
);
#endif
Firmware/Source/System/Sys_Task_List.c
View file @
fda8cabd
...
...
@@ -54,6 +54,7 @@ void Sys_50ms_Tasks(void)
{
BackLight_Service
();
Telltales_Management
();
UDS_Read_Preconditions
();
g_u8Cursor_Posittion
=
Menu_Get_Current_Cursor_Information
();
...
...
Firmware/Source/UDS/UDS_ISO14229_Server.c
View file @
fda8cabd
...
...
@@ -6,6 +6,7 @@
日 期:2016.11.1
******************************************************************************/
#include "UDS_ISO14229_Server.h"
#include "Telltales\Telltales_user.h"
UDS_APP_RX_Union
UDS_APP_RX
;
UDS_APP_TX_Union
UDS_APP_TX
;
...
...
@@ -211,7 +212,11 @@ void UDS_Process_Service_Request(void)
{
case
0x10
:
UDS_Service_10_Indication
(
UDS_APP_RX
.
A_PDU
.
TA_type
,
UDS_APP_RX
.
A_PDU
.
Length
,
UDS_APP_RX
.
A_PDU
.
Data
);
break
;
case
0x22
:
UDS_Service_22_Indication
(
UDS_APP_RX
.
A_PDU
.
TA_type
,
UDS_APP_RX
.
A_PDU
.
Length
,
UDS_APP_RX
.
A_PDU
.
Data
);
case
0x22
:
if
(
g_u8UDSreadprec
>=
5U
)
{
UDS_Service_22_Indication
(
UDS_APP_RX
.
A_PDU
.
TA_type
,
UDS_APP_RX
.
A_PDU
.
Length
,
UDS_APP_RX
.
A_PDU
.
Data
);
}
break
;
/* case 0x2E: UDS_Service_2E_Indication(UDS_APP_RX.A_PDU.TA_type, UDS_APP_RX.A_PDU.Length, UDS_APP_RX.A_PDU.Data);
break;
...
...
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