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
88c1e982
Commit
88c1e982
authored
Aug 27, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加前五步自动上下电
parent
4c1c007a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 deletions
+23
-9
Key.h
YueJin_test_bench/source/Appliciation/Key.h
+1
-0
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+6
-9
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+16
-0
No files found.
YueJin_test_bench/source/Appliciation/Key.h
View file @
88c1e982
...
...
@@ -72,6 +72,7 @@ extern Key_Real_Status_en_t enKeyLeftRealStatus;
extern
Key_Real_Status_en_t
enKeyRightRealStatus
;
/*------------------------------------------------------------------------------------*/
extern
uint8_t
IG_OFF_Flag
;
extern
void
Key_Init
(
void
);
extern
void
Key_Service
(
void
);
/*10ms*/
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
88c1e982
...
...
@@ -121,20 +121,12 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent)
{
}
}
uint8_t
IG_OFF_Flag
;
void
Key_Operation_SW2
(
Key_Event_en_t
enKeyEvent
)
{
/*清零ODO*/
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
// MENU_CHECK_STEP_ADD( );
// if(MENU_CHECK_STEP >= 16)
// {
// MENU_CHECK_STEP = 0;
// }
// else
// {
// MENU_CHECK_STEP++;
// }
if
(
MENU_CHECK_STEP
==
0
)
{
...
...
@@ -148,6 +140,11 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{
MENU_CHECK_STEP
++
;
}
if
((
MENU_CHECK_STEP
<
6
)
&&
(
MENU_CHECK_STEP
>
0
))
{
IG_OFF_Flag
=
1
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
88c1e982
...
...
@@ -171,6 +171,22 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
Buzzer_Start
();
Total_Check
(
);
//u16LJSText = TFT_LCD_REQ_FIFO_MAX_DEPTH;
if
(
IG_OFF_Flag
)
{
if
(
delay_time
<
10
)
{
POWER_CTRL_KL15
=
0u
;
//KL15
delay_time
++
;
}
else
{
delay_time
=
0
;
IG_OFF_Flag
=
0
;
POWER_CTRL_KL15
=
1u
;
//KL15
}
}
}
/*=================================================================*/
...
...
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