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
74f41343
Commit
74f41343
authored
Aug 16, 2024
by
李延凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加按键功能, 进入630H升级MCU模式
parent
caacdc92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+3
-1
UDS_ISO14229_Services.c
Firmware/Source/UDS/UDS_ISO14229_Services.c
+10
-0
UDS_ISO14229_Services.h
Firmware/Source/UDS/UDS_ISO14229_Services.h
+2
-0
No files found.
Firmware/Source/Component/Key/Key_user.c
View file @
74f41343
#include "Key_user.h"
#include "Components.h"
#include "UDS_ISO14229_Services.h"
__align
(
4
)
...
...
@@ -27,6 +27,8 @@ void Key_Operation_Left(Key_Event_en_t enKeyEvent)//选择
case
KEY_EVENT_LONG_PRESS_3
:
//5s
break
;
case
KEY_EVENT_LONG_PRESS_4
:
//10s
/* 进入630H升级MCU模式 */
Get_Into_630H_Update_MCU_Mode
();
break
;
case
KEY_EVENT_OFF_TO_ON
:
break
;
...
...
Firmware/Source/UDS/UDS_ISO14229_Services.c
View file @
74f41343
...
...
@@ -1556,3 +1556,13 @@ void DIAG_InitParameter(void)
RANDOM
=
1573
;
Services27_01_Requested
=
0
;
}
void
Get_Into_630H_Update_MCU_Mode
(
void
)
{
Write_App_InValid
(
Flag_App_OTAStatus
);
for
(
i
=
0
;
i
<
250
;
++
i
)
{
__NOP
();
}
__NVIC_SystemReset
();
}
Firmware/Source/UDS/UDS_ISO14229_Services.h
View file @
74f41343
...
...
@@ -399,4 +399,6 @@ void Data_Read_DiagPara(void);
void
DFlash_init
(
void
);
void
Data_Read_DiagPara
(
void
);
extern
void
Get_Into_630H_Update_MCU_Mode
(
void
);
#endif
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