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
3b3a9d2f
Commit
3b3a9d2f
authored
Mar 25, 2026
by
李鑫3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:GTX400检测台
parent
ac97d7f2
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
622 additions
and
552 deletions
+622
-552
CAN_APP.c
YueJin_test_bench/source/Appliciation/CAN_APP.c
+140
-92
CAN_APP.h
YueJin_test_bench/source/Appliciation/CAN_APP.h
+2
-0
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+140
-136
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+103
-59
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+5
-5
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+29
-52
RSCAN.c
YueJin_test_bench/source/Driver/CAN/RSCAN.c
+203
-208
No files found.
YueJin_test_bench/source/Appliciation/CAN_APP.c
View file @
3b3a9d2f
This diff is collapsed.
Click to expand it.
YueJin_test_bench/source/Appliciation/CAN_APP.h
View file @
3b3a9d2f
...
@@ -84,4 +84,6 @@ extern uint8_t HWout[8];
...
@@ -84,4 +84,6 @@ extern uint8_t HWout[8];
extern
const
uint32_t
diagKeyP1
;
extern
const
uint32_t
diagKeyP1
;
extern
const
uint32_t
diagKeyP2
;
extern
const
uint32_t
diagKeyP2
;
extern
uint16_t
Light_Sensing
(
uint8_t
bytH
,
uint8_t
bytL
);
extern
uint16_t
Light_Sensing
(
uint8_t
bytH
,
uint8_t
bytL
);
extern
void
PMPRead
(
void
);
extern
uint8_t
zhenduanstep2
;
#endif
#endif
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
3b3a9d2f
This diff is collapsed.
Click to expand it.
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
3b3a9d2f
This diff is collapsed.
Click to expand it.
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
3b3a9d2f
...
@@ -11,9 +11,9 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
...
@@ -11,9 +11,9 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
{
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
{
key_left
=
1
;
//
key_left =1;
Gen_TimeDelay
(
100
*
1000
,
50U
);
//
Gen_TimeDelay ( 100 *1000,50U);
key_left
=
0
;
//
key_left =0;
}
}
...
@@ -167,7 +167,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
...
@@ -167,7 +167,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{
{
if
(
MENU_CHECK_STEP
==
2
)
if
(
MENU_CHECK_STEP
==
2
)
{
{
LINE_RESET
=
1
;
key_left
=
1
;
shortflag
=
1
;
shortflag
=
1
;
}
}
...
@@ -177,7 +177,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
...
@@ -177,7 +177,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{
{
if
(
MENU_CHECK_STEP
==
2
)
if
(
MENU_CHECK_STEP
==
2
)
{
{
LINE_RESET
=
1
;
key_left
=
1
;
longflag
=
1
;
longflag
=
1
;
}
}
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
3b3a9d2f
...
@@ -287,20 +287,22 @@ else
...
@@ -287,20 +287,22 @@ else
if
(
longflag
==
1
)
if
(
longflag
==
1
)
{
{
// key_left=1;
queren_delay
++
;
queren_delay
++
;
if
(
queren_delay
==
25
)
if
(
queren_delay
==
25
)
{
{
LINE_RESET
=
0
;
// key_left
=0;
queren_delay
=
0
;
queren_delay
=
0
;
longflag
=
0
;
longflag
=
0
;
}
}
}
}
else
if
(
shortflag
==
1
)
else
if
(
shortflag
==
1
)
{
{
// key_left=1;
queren_delay2
++
;
queren_delay2
++
;
if
(
queren_delay2
==
10
)
if
(
queren_delay2
==
10
)
{
{
LINE_RESET
=
0
;
// key_left
=0;
queren_delay2
=
0
;
queren_delay2
=
0
;
shortflag
=
0
;
shortflag
=
0
;
}
}
...
@@ -363,7 +365,7 @@ else
...
@@ -363,7 +365,7 @@ else
if
(
(
MENU_CHECK_STEP
==
8
)
||
(
MENU_CHECK_STEP
==
0
)
)
if
(
MENU_CHECK_STEP
==
6
)
{
{
key_left
=
1
;
key_left
=
1
;
leftad2
++
;
leftad2
++
;
...
@@ -377,7 +379,7 @@ else
...
@@ -377,7 +379,7 @@ else
}
}
if
(
MENU_CHECK_STEP
==
8
)
if
(
MENU_CHECK_STEP
==
6
)
{
{
key_right
=
1
;
key_right
=
1
;
rightadd
++
;
rightadd
++
;
...
@@ -392,22 +394,22 @@ else
...
@@ -392,22 +394,22 @@ else
}
}
if
((
MENU_CHECK_STEP
==
6
)
||
(
MENU_CHECK_STEP
==
7
))
//
if((MENU_CHECK_STEP==6) || (MENU_CHECK_STEP==7))
{
//
{
if
(
shoubing
==
1
)
//
if( shoubing == 1)
{
//
{
key_right
=
1
;
//
key_right=1;
delay_d
++
;
//
delay_d++;
if
(
delay_d
==
30
)
//
if(delay_d==30)
{
//
{
key_right
=
0
;
//
key_right=0;
delay_d
=
0
;
//
delay_d=0;
shoubing
=
0
;
//
shoubing=0;
}
//
}
}
//
}
}
//
}
// if((rightflg==1) && (leftflg==1))
// if((rightflg==1) && (leftflg==1))
// {
// {
...
@@ -486,36 +488,6 @@ else
...
@@ -486,36 +488,6 @@ else
}
}
}
}
else
if
((
MENU_CHECK_STEP
==
5
)
&&
(
igonoff
==
4
))
else
if
((
MENU_CHECK_STEP
==
5
)
&&
(
igonoff
==
4
))
{
delay
++
;
// POWER_CTRL_KL30 = 0u; //B+
POWER_CTRL_KL15
=
0u
;
//KL15
LINE_OUT_cartoon
=
0
;
if
(
delay
==
11
)
{
// POWER_CTRL_KL30 = 1u; //B+
POWER_CTRL_KL15
=
1u
;
//KL15
LINE_OUT_cartoon
=
1
;
delay
=
0
;
igonoff
=
5
;
}
}
else
if
((
MENU_CHECK_STEP
==
6
)
&&
(
igonoff
==
5
))
{
delay
++
;
// POWER_CTRL_KL30 = 0u; //B+
POWER_CTRL_KL15
=
0u
;
//KL15
LINE_OUT_cartoon
=
0
;
if
(
delay
==
11
)
{
// POWER_CTRL_KL30 = 1u; //B+
POWER_CTRL_KL15
=
1u
;
//KL15
LINE_OUT_cartoon
=
1
;
delay
=
0
;
igonoff
=
6
;
}
}
else
if
((
MENU_CHECK_STEP
==
7
)
&&
(
igonoff
==
6
))
{
{
delay
++
;
delay
++
;
// POWER_CTRL_KL30 = 0u; //B+
// POWER_CTRL_KL30 = 0u; //B+
...
@@ -527,10 +499,10 @@ else
...
@@ -527,10 +499,10 @@ else
POWER_CTRL_KL15
=
1u
;
//KL15
POWER_CTRL_KL15
=
1u
;
//KL15
LINE_OUT_cartoon
=
1
;
LINE_OUT_cartoon
=
1
;
delay
=
0
;
delay
=
0
;
igonoff
=
7
;
igonoff
=
5
;
}
}
}
}
else
if
((
MENU_CHECK_STEP
==
8
)
&&
(
igonoff
==
7
))
else
if
((
MENU_CHECK_STEP
==
6
)
&&
(
igonoff
==
5
))
{
{
delay
++
;
delay
++
;
// POWER_CTRL_KL30 = 0u; //B+
// POWER_CTRL_KL30 = 0u; //B+
...
@@ -542,10 +514,10 @@ else
...
@@ -542,10 +514,10 @@ else
POWER_CTRL_KL15
=
1u
;
//KL15
POWER_CTRL_KL15
=
1u
;
//KL15
LINE_OUT_cartoon
=
1
;
LINE_OUT_cartoon
=
1
;
delay
=
0
;
delay
=
0
;
igonoff
=
8
;
igonoff
=
6
;
}
}
}
}
else
if
((
MENU_CHECK_STEP
==
9
)
&&
(
igonoff
==
8
))
else
if
((
MENU_CHECK_STEP
==
7
)
&&
(
igonoff
==
6
))
{
{
delay
++
;
delay
++
;
POWER_CTRL_KL30
=
0u
;
//B+
POWER_CTRL_KL30
=
0u
;
//B+
...
@@ -560,7 +532,12 @@ else
...
@@ -560,7 +532,12 @@ else
igonoff
=
0
;
igonoff
=
0
;
}
}
}
}
if
(
MENU_CHECK_STEP
==
7
)
{
PMPRead
();
}
}
}
/*=================================================================*/
/*=================================================================*/
...
...
YueJin_test_bench/source/Driver/CAN/RSCAN.c
View file @
3b3a9d2f
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