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
307d6b49
Commit
307d6b49
authored
Jul 04, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加前5步下点上电以及上电切换按钮
parent
00fd6ffb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
3 deletions
+32
-3
CAN_APP.c
YueJin_test_bench/source/Appliciation/CAN_APP.c
+2
-2
Key.h
YueJin_test_bench/source/Appliciation/Key.h
+1
-0
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+13
-1
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+16
-0
No files found.
YueJin_test_bench/source/Appliciation/CAN_APP.c
View file @
307d6b49
...
@@ -285,8 +285,8 @@ void can_submit(void)
...
@@ -285,8 +285,8 @@ void can_submit(void)
// uint8_t data7[8] = {0, 0, 0, 0, 0, 0, 0, 0};//0x0C50FFD2
// uint8_t data7[8] = {0, 0, 0, 0, 0, 0, 0, 0};//0x0C50FFD2
// // CAN_Frame_st_t m_msg7;
// // CAN_Frame_st_t m_msg7;
// // uint8_t data7[8] = {0, 0, 0, 0, 0, 0, 0, 0};
// // uint8_t data7[8] = {0, 0, 0, 0, 0, 0, 0, 0};
POWER_CTRL_KL30
=
1u
;
//B+
//
POWER_CTRL_KL30 = 1u; //B+
POWER_CTRL_KL15
=
1u
;
//KL15
//
POWER_CTRL_KL15 = 1u; //KL15
if
((
MENU_CHECK_STEP
!=
6
)
&&
(
MENU_CHECK_STEP
!=
10
)
&&
(
MENU_CHECK_STEP
!=
11
))
if
((
MENU_CHECK_STEP
!=
6
)
&&
(
MENU_CHECK_STEP
!=
10
)
&&
(
MENU_CHECK_STEP
!=
11
))
{
{
/* ABS故障指示灯 */
/* ABS故障指示灯 */
...
...
YueJin_test_bench/source/Appliciation/Key.h
View file @
307d6b49
...
@@ -72,6 +72,7 @@ extern Key_Real_Status_en_t enKeyLeftRealStatus;
...
@@ -72,6 +72,7 @@ extern Key_Real_Status_en_t enKeyLeftRealStatus;
extern
Key_Real_Status_en_t
enKeyRightRealStatus
;
extern
Key_Real_Status_en_t
enKeyRightRealStatus
;
/*------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------*/
extern
uint8_t
IG_OFF_Flag
;
extern
void
Key_Init
(
void
);
extern
void
Key_Init
(
void
);
extern
void
Key_Service
(
void
);
/*10ms*/
extern
void
Key_Service
(
void
);
/*10ms*/
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
307d6b49
...
@@ -93,7 +93,14 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent)
...
@@ -93,7 +93,14 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent)
{
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
if
(
POWER_CTRL_KL15
)
{
POWER_CTRL_KL15
=
0
;
}
else
{
POWER_CTRL_KL15
=
1
;
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
...
@@ -122,12 +129,17 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent)
...
@@ -122,12 +129,17 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent)
{
{
}
}
}
}
uint8_t
IG_OFF_Flag
;
void
Key_Operation_SW2
(
Key_Event_en_t
enKeyEvent
)
void
Key_Operation_SW2
(
Key_Event_en_t
enKeyEvent
)
{
{
/*清零ODO*/
/*清零ODO*/
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
MENU_CHECK_STEP_ADD
(
);
MENU_CHECK_STEP_ADD
(
);
if
((
MENU_CHECK_STEP
<
6
)
&&
(
MENU_CHECK_STEP
>
0
))
{
IG_OFF_Flag
=
1
;
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
307d6b49
...
@@ -209,6 +209,7 @@ void Sys_Run_Mode_50ms_Tasks_Group(void)
...
@@ -209,6 +209,7 @@ void Sys_Run_Mode_50ms_Tasks_Group(void)
------------------------------------------------------------------------------*/
------------------------------------------------------------------------------*/
uint16_t
u16LJSText
;
uint16_t
u16LJSText
;
uint8_t
time300ms
;
uint8_t
time300ms
;
uint8_t
delay_time
;
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
{
{
static
uint32_t
loc_timer
=
0
;
static
uint32_t
loc_timer
=
0
;
...
@@ -236,6 +237,21 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
...
@@ -236,6 +237,21 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
Buzzer_Start
();
Buzzer_Start
();
Total_Check
(
);
Total_Check
(
);
//u16LJSText = TFT_LCD_REQ_FIFO_MAX_DEPTH;
//u16LJSText = TFT_LCD_REQ_FIFO_MAX_DEPTH;
if
(
IG_OFF_Flag
)
{
if
(
delay_time
<
5
)
{
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