Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
b7ced6a1
Commit
b7ced6a1
authored
May 26, 2025
by
王佳伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改按键
parent
4f21b111
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
370 additions
and
206 deletions
+370
-206
Key.h
YueJin_test_bench/source/Appliciation/Key.h
+30
-2
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+340
-204
No files found.
YueJin_test_bench/source/Appliciation/Key.h
View file @
b7ced6a1
...
...
@@ -3,16 +3,22 @@
#include "TYW_stdint.h"
#define Check_KeepTime 1000 //每个步骤保持时间
#define Check_Couont 11 //多少个步骤
typedef
enum
{
KEY_1
,
KEY_2
,
KEY_3
,
KEY_4
,
KEY_5
,
KEY_6
,
KEY_7
,
KEY_8
,
KEY_9
,
KEY_10
,
KEY_11
,
KEY_3
,
KEY_NUM_MAX
,
}
Key_Num_en_t
;
...
...
@@ -79,5 +85,27 @@ extern void Key_Service(void); /*10ms*/
extern
Key_Set_en_t
Key_Parameter_Set_Short_Press_Time
(
uint16_t
u16Time
);
extern
Key_Set_en_t
Key_Parameter_Set_Long_Press_Time
(
uint16_t
u16Time
);
extern
Key_Set_en_t
Key_Parameter_Set_Super_Long_Press_Time
(
uint32_t
u32Time
);
extern
uint8_t
Check_Steps
;
extern
void
User_CheckMode_Service
(
uint8_t
CbkCycle
);
extern
uint8_t
Vspeed
;
extern
uint8_t
Signal_4G
;
extern
uint8_t
Signal_GPS
;
extern
uint16_t
Eletricity
;
extern
uint8_t
Hour
;
extern
uint8_t
Tcs
;
extern
uint8_t
Energy_recovery
;
extern
uint8_t
Gear
;
extern
uint8_t
Ready
;
extern
uint8_t
Cruiste
;
extern
uint8_t
Fault
;
extern
uint8_t
Motor_hert
;
extern
uint8_t
Battery_temp
;
#endif
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
b7ced6a1
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