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
ecee3ad9
Commit
ecee3ad9
authored
Sep 13, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:上电全亮程序
parent
96c4c0e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
92 deletions
+94
-92
Barcode_Scanner.c
YueJin_test_bench/source/Appliciation/Barcode_Scanner.c
+1
-1
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+91
-91
init.c
YueJin_test_bench/source/System/init.c
+2
-0
No files found.
YueJin_test_bench/source/Appliciation/Barcode_Scanner.c
View file @
ecee3ad9
...
@@ -370,7 +370,7 @@ void BarCodeDataGet(void)
...
@@ -370,7 +370,7 @@ void BarCodeDataGet(void)
{
{
memcpy
(
barcode_Msg
,
&
mDataBufPtr1
[
6
],
34
);
memcpy
(
barcode_Msg
,
&
mDataBufPtr1
[
6
],
34
);
memcpy
(
barcode_Msg1
,
&
mDataBufPtr1
[
6
],
34
);
memcpy
(
barcode_Msg1
,
&
mDataBufPtr1
[
6
],
34
);
copyover
=
1
;
//
copyover = 1;
}
}
else
else
{
{
...
...
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
ecee3ad9
...
@@ -11,30 +11,30 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent) //下一步
...
@@ -11,30 +11,30 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent) //下一步
{
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
if
(
firstpowerflag
==
2
)
//
if(firstpowerflag == 2)
{
//
{
if
(
saomafinish
==
3
)
//
if(saomafinish == 3)
{
//
{
zhenduansendStep
=
0
;
//
zhenduansendStep = 0;
zhenduanflag
=
0
;
//
zhenduanflag = 0;
MENU_CHECK_STEP_ADD
();
//
MENU_CHECK_STEP_ADD();
}
//
}
}
//
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
if
(
firstpowerflag
==
2
)
//
if(firstpowerflag == 2)
{
//
{
if
(
AutoFlag
==
1
)
//
if(AutoFlag == 1)
{
//
{
AutoFlag
=
0
;
//
AutoFlag = 0;
}
//
}
else
//
else
{
//
{
AutoFlag
=
1
;
//
AutoFlag = 1;
}
//
}
}
//
}
}
}
else
else
{
{
...
@@ -44,10 +44,10 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步
...
@@ -44,10 +44,10 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步
{
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
if
(
firstpowerflag
==
2
)
//
if(firstpowerflag == 2)
{
//
{
MENU_CHECK_STEP_SUB
();
//
MENU_CHECK_STEP_SUB();
}
//
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
...
@@ -55,15 +55,15 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步
...
@@ -55,15 +55,15 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
{
if
(
(
LED_Waring
==
1
)
||
(
UDS_Warning_Voltage
==
1
))
//
if ( (LED_Waring == 1) || (UDS_Warning_Voltage == 1))
{
//
{
;
//
;
}
//
}
else
//
else
{
//
{
Display_Sub
(
);
//
Display_Sub( );
Display_TFT_Clear
(
);
//
Display_TFT_Clear( );
}
//
}
}
}
...
@@ -76,13 +76,13 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent)
...
@@ -76,13 +76,13 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
// upkeyflag = 1; //按键加
// upkeyflag = 1; //按键加
if
(
firstpowerflag
==
2
)
//
if(firstpowerflag == 2)
{
//
{
if
(
saomafinish
==
1
)
//
if(saomafinish == 1)
{
//
{
zhenduansendStep
=
5
;
//
zhenduansendStep = 5;
}
//
}
}
//
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
...
@@ -98,17 +98,17 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent)
...
@@ -98,17 +98,17 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent)
{
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
if
(
saomafinish
==
3
)
//
if(saomafinish == 3)
{
//
{
Display_TFT_Clear
();
//
Display_TFT_Clear();
GUI_Display_Version_Code_Service
(
25
,
20
,
"Please Scan The Code "
,
Letter_Num_11
,
PCodeText_Space_size
);
//
GUI_Display_Version_Code_Service(25, 20, "Please Scan The Code ", Letter_Num_11, PCodeText_Space_size);
firstpowerflag
=
0
;
//
firstpowerflag = 0;
saomafinish
=
0
;
//
saomafinish = 0;
}
//
}
else
if
(
saomafinish
==
0
)
//
else if(saomafinish == 0)
{
//
{
zhenduanflag
=
1
;
//
zhenduanflag = 1;
}
//
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
...
@@ -124,16 +124,16 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
...
@@ -124,16 +124,16 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
if
(
LINE_OUT_NEG_01
==
1U
)
//上下ACC电
//
if(LINE_OUT_NEG_01 == 1U) //上下ACC电
{
//
{
LINE_OUT_NEG_01
=
0U
;
//
LINE_OUT_NEG_01 = 0U;
Auto_ONOFF
=
3
;
//
Auto_ONOFF = 3;
}
//
}
else
//
else
{
//
{
LINE_OUT_NEG_01
=
1U
;
//
LINE_OUT_NEG_01 = 1U;
Auto_ONOFF
=
0
;
//
Auto_ONOFF = 0;
}
//
}
// downkeyflag = 1; //数字减
// downkeyflag = 1; //数字减
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
...
@@ -166,27 +166,27 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
...
@@ -166,27 +166,27 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
// Confirmkeycount == 0;
// Confirmkeycount == 0;
// mimayanzhengjieguo = 0;
// mimayanzhengjieguo = 0;
// }
// }
if
(
firstpowerflag
==
2
)
//
if(firstpowerflag == 2)
{
//
{
if
(
clearOdoFlag
==
0
)
//
if(clearOdoFlag == 0)
{
//
{
clearOdoFlag
=
1
;
//
clearOdoFlag = 1;
}
//
}
else
//
else
{
//
{
queren
=
1
;
//
queren = 1;
}
//
}
}
//
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
{
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
{
if
(
Get_Display_Type
(
)
==
2
)
//
if(Get_Display_Type( ) == 2)
{
//
{
MENU_CHECK_STEP_SUB
(
);
//
MENU_CHECK_STEP_SUB( );
}
//
}
}
}
else
else
{
{
...
@@ -197,17 +197,17 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //自动下电模式
...
@@ -197,17 +197,17 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //自动下电模式
/*清零ODO*/
/*清零ODO*/
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
if
(
firstpowerflag
==
2
)
//
if(firstpowerflag == 2)
{
//
{
if
(
Auto_ONOFF
!=
0
)
//
if(Auto_ONOFF != 0)
{
//
{
Auto_ONOFF
=
0
;
//
Auto_ONOFF = 0;
}
//
}
else
//
else
{
//
{
Auto_ONOFF
=
1
;
//
Auto_ONOFF = 1;
}
//
}
}
//
}
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
...
@@ -215,10 +215,10 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //自动下电模式
...
@@ -215,10 +215,10 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //自动下电模式
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
{
if
(
Get_Display_Type
(
)
==
2
)
//
if(Get_Display_Type( ) == 2)
{
//
{
MENU_CHECK_STEP_ADD
(
);
//
MENU_CHECK_STEP_ADD( );
}
//
}
}
}
else
else
{
{
...
...
YueJin_test_bench/source/System/init.c
View file @
ecee3ad9
...
@@ -124,6 +124,8 @@ void Sys_Startup_Init(void)
...
@@ -124,6 +124,8 @@ void Sys_Startup_Init(void)
/*上电扫码校验功能如果需要扫码校验注释掉firstpowerflag = 2,打开上面两行的注释即可*/
/*上电扫码校验功能如果需要扫码校验注释掉firstpowerflag = 2,打开上面两行的注释即可*/
firstpowerflag
=
2
;
firstpowerflag
=
2
;
saomafinish
=
3
;
saomafinish
=
3
;
MENU_CHECK_STEP
=
10
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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