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
a7611486
Commit
a7611486
authored
Oct 16, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:全亮程序
parent
27406b02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
73 deletions
+75
-73
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+71
-71
R485_Communication_Matrix.c
...est_bench/source/Appliciation/R485_Communication_Matrix.c
+2
-2
init.c
YueJin_test_bench/source/System/init.c
+2
-0
No files found.
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
a7611486
...
...
@@ -11,30 +11,30 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent) //下一步
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
firstpowerflag
==
2
)
{
if
(
saomafinish
==
3
)
{
MENU_CHECK_STEP_ADD
(
);
zhenduansendStep
=
0
;
zhenduanflag
=
Data_Mode_Dot
;
}
}
//
if(firstpowerflag == 2)
//
{
//
if(saomafinish == 3)
//
{
//
MENU_CHECK_STEP_ADD( );
//
zhenduansendStep = 0;
//
zhenduanflag = Data_Mode_Dot;
//
}
//
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
if
(
firstpowerflag
==
2
)
{
if
(
AutoFlag
==
1
)
{
AutoFlag
=
0
;
}
else
{
AutoFlag
=
1
;
}
}
//
if(firstpowerflag == 2)
//
{
//
if(AutoFlag == 1)
//
{
//
AutoFlag = 0;
//
}
//
else
//
{
//
AutoFlag = 1;
//
}
//
}
}
else
{
...
...
@@ -44,10 +44,10 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
firstpowerflag
==
2
)
{
MENU_CHECK_STEP_SUB
();
}
//
if(firstpowerflag == 2)
//
{
//
MENU_CHECK_STEP_SUB();
//
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -55,15 +55,15 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent) //上一步
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
if
(
(
LED_Waring
==
1
)
||
(
UDS_Warning_Voltage
==
1
))
{
;
}
else
{
Display_Sub
(
);
Display_TFT_Clear
(
);
}
//
if ( (LED_Waring == 1) || (UDS_Warning_Voltage == 1))
//
{
//
;
//
}
//
else
//
{
//
Display_Sub( );
//
Display_TFT_Clear( );
//
}
}
...
...
@@ -75,13 +75,13 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
firstpowerflag
==
2
)
{
if
(
zhenduanflag
==
Data_Mode_Write
)
{
zhenduansendStep
=
5
;
}
}
//
if(firstpowerflag == 2)
//
{
//
if(zhenduanflag == Data_Mode_Write)
//
{
//
zhenduansendStep = 5;
//
}
//
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -97,7 +97,7 @@ void Key_Operation_SW8(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
zhenduanflag
=
Data_Mode_Write
;
//
zhenduanflag = Data_Mode_Write;
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -113,7 +113,7 @@ void Key_Operation_SW9(Key_Event_en_t enKeyEvent) //下移位
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
downkeyflag
=
1
;
//
downkeyflag = 1;
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -129,21 +129,21 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
LINE_OUT_NEG_04
==
1U
)
//上下ACC电
{
LINE_OUT_NEG_04
=
0U
;
Auto_ONOFF
=
3
;
}
else
{
LINE_OUT_NEG_04
=
1U
;
Auto_ONOFF
=
0
;
}
//
if(LINE_OUT_NEG_04 == 1U) //上下ACC电
//
{
//
LINE_OUT_NEG_04 = 0U;
//
Auto_ONOFF = 3;
//
}
//
else
//
{
//
LINE_OUT_NEG_04 = 1U;
//
Auto_ONOFF = 0;
//
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
Auto_ONOFF
=
1
;
//自动断电
LINE_OUT_NEG_04
=
0U
;
//
Auto_ONOFF = 1; //自动断电
//
LINE_OUT_NEG_04 = 0U;
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
...
...
@@ -156,27 +156,27 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
firstpowerflag
==
2
)
{
if
(
clearOdoFlag
==
0
)
{
clearOdoFlag
=
1
;
}
else
{
queren
=
1
;
}
}
//
if(firstpowerflag == 2)
//
{
//
if(clearOdoFlag == 0)
//
{
//
clearOdoFlag = 1;
//
}
//
else
//
{
//
queren = 1;
//
}
//
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
if
(
Get_Display_Type
(
)
==
2
)
{
MENU_CHECK_STEP_SUB
(
);
}
//
if(Get_Display_Type( ) == 2)
//
{
//
MENU_CHECK_STEP_SUB( );
//
}
}
else
{
...
...
@@ -186,7 +186,7 @@ void Key_Operation_SW1(Key_Event_en_t enKeyEvent) //上移位
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
upkeyflag
=
1
;
//
upkeyflag = 1;
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -206,7 +206,7 @@ void Key_Operation_SW6(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
Confirmkeyflag
=
1
;
//
Confirmkeyflag = 1;
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.c
View file @
a7611486
...
...
@@ -385,8 +385,8 @@ uint32_t R485_Send_0xD2(void)
break
;
case
13
:
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
DE
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
2
;
//车速99
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_L
=
0x
00
;
R485_IDD2h
.
Sig
.
ICMCalculatesVehicleSpeed_H
=
0x0
0
;
//车速99
R485_IDD2h
.
Sig
.
CruiseModeFeedback
=
0x01
;
//巡航灯
...
...
YueJin_test_bench/source/System/init.c
View file @
a7611486
...
...
@@ -131,6 +131,8 @@ void Sys_Startup_Init(void)
/*上电扫码校验功能如果需要扫码校验注释掉firstpowerflag = 2,saomafinish = 3;打开上面两行的注释即可*/
firstpowerflag
=
2
;
saomafinish
=
3
;
MENU_CHECK_STEP
=
13
;
}
/***********************************************************************
...
...
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