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
e7ebaa58
Commit
e7ebaa58
authored
Sep 06, 2024
by
王金亮
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wjl_devlop' into 'dev'
Wjl devlop See merge request
!74
parents
a2684129
7f5b2cd0
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
80 additions
and
8 deletions
+80
-8
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+5
-5
AMT630H_Datas.h
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
+1
-0
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+13
-1
Key_user.h
Firmware/Source/Component/Key/Key_user.h
+2
-0
Menu_Interface.c
Firmware/Source/Component/Menu/Menu_Interface.c
+7
-0
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+1
-0
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
+2
-1
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 @
e7ebaa58
...
...
@@ -978,11 +978,6 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\PicBin.h
</FilePath>
</File>
<File>
<FileName>
kei_S1.0.6_20240827.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\kei_S1.0.6_20240827.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.6_20240827.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\kei_S1.0.6_20240827.lib
</FilePath>
</File>
</Files>
</Group>
<Group>
...
...
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
View file @
e7ebaa58
...
...
@@ -61,6 +61,7 @@ extern void AMT630H_GUI_SELFCHECK_STS_INIT(void);
extern
uint8_t
g_u8Display_Mode
;
extern
uint8_t
g_u8Display_Mode_select
;
extern
uint8_t
g_u8SelfCheck
;
...
...
Firmware/Source/Component/Key/Key_user.c
View file @
e7ebaa58
...
...
@@ -5,7 +5,7 @@
__align
(
4
)
#define BACK_MENU_TIME
10
00
#define BACK_MENU_TIME
8
00
_Menu_Data
MenuData
;
RTC_TimeTypeDef
RTC_TimeStruct
;
RTC_DateTypeDef
RTC_DateStruct
;
...
...
@@ -385,6 +385,18 @@ void Get_DisTime_Service(void)
}
void
My_Key_Service
(
void
)
{
/* 自检时不可操作按键 */
if
(
g_u8SelfCheck
)
{
if
(
Get_ActualVechileSpeed
()
==
0
)
{
Key_Service
();
}
}
}
uint8_t
Get_Dis_Hour_Time
(
void
)
{
return
MenuData
.
u8Dis_Hour
;
...
...
Firmware/Source/Component/Key/Key_user.h
View file @
e7ebaa58
...
...
@@ -77,6 +77,8 @@ uint8_t Get_Dis_Bluetooth_Open_Close(void);
uint8_t
Get_Dis_Language
(
void
);
void
Get_DisTime_Service
(
void
);
extern
void
My_Key_Service
(
void
);
#endif
Firmware/Source/Component/Menu/Menu_Interface.c
View file @
e7ebaa58
...
...
@@ -395,6 +395,13 @@ void Menu_Logic_Operation_Clock_Hour_Tenb_Set(Menu_Key_en_t enKeyType)
datmax
=
2u
;
datmin
=
0u
;
Menu_u8Data_Updata_Process
(
updataDir
,
datmax
,
datmin
,
1u
,
(
uint8_t
*
)
&
(
MenuData
.
Dis_Hour_Tenb
));
if
(
MenuData
.
Dis_Hour_Tenb
==
2U
)
{
if
(
MenuData
.
Dis_Hour_Bit
>
3U
)
{
MenuData
.
Dis_Hour_Bit
=
0U
;
}
}
MenuData
.
u8Dis_Hour
=
(
MenuData
.
Dis_Hour_Tenb
*
10
+
MenuData
.
Dis_Hour_Bit
);
MenuData
.
u8Dis_Minute
=
(
MenuData
.
Dis_Minute_Tenb
*
10
+
MenuData
.
Dis_Minute_Bit
);
}
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
e7ebaa58
...
...
@@ -136,6 +136,7 @@ static void Power_IG_ON_Init(void)
FaultCode_Init
();
Amt630hInit
();
AMT630H_GUI_SELFCHECK_STS_INIT
();
Menu_Service
(
MENU_KEY_TIMEOUT
);
/* 菜单回到初始界面 */
}
static
void
Power_Sleep_Init
(
void
)
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
e7ebaa58
...
...
@@ -470,3 +470,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 @
e7ebaa58
...
...
@@ -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 @
e7ebaa58
...
...
@@ -35,7 +35,7 @@ void Sys_10ms_Tasks(void)
{
FaultCode_Service
(
10u
);
Line_In_Debounce_Service
(
10u
);
Key_Service
();
My_
Key_Service
();
Data_Mileage_Write_EEPROM
();
Key_Clear_Time
();
Key_TimeOut_Service
();
...
...
@@ -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 @
e7ebaa58
...
...
@@ -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