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
062173ea
Commit
062173ea
authored
Jan 28, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加版本号校验,增加纯色界面控制
parent
f39181a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
24 deletions
+27
-24
Check_Ctrl.c
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
+3
-3
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+24
-21
No files found.
YueJin_test_bench/source/Appliciation/Check_Ctrl.c
View file @
062173ea
...
@@ -71,8 +71,8 @@ void Function_Check_Ctrl(uint32_t cmd);
...
@@ -71,8 +71,8 @@ void Function_Check_Ctrl(uint32_t cmd);
void
MENU_CHECK_STEP_ADD
(
void
)
void
MENU_CHECK_STEP_ADD
(
void
)
{
{
//
if(jiaoyan == 1)
if
(
jiaoyan
==
1
)
//
{
{
MENU_CHECK_STEP
++
;
MENU_CHECK_STEP
++
;
if
(
MENU_CHECK_STEP
>
14
)
if
(
MENU_CHECK_STEP
>
14
)
...
@@ -87,7 +87,7 @@ void MENU_CHECK_STEP_ADD(void)
...
@@ -87,7 +87,7 @@ void MENU_CHECK_STEP_ADD(void)
{
{
MENU_CHECK_STEP
=
1
;
MENU_CHECK_STEP
=
1
;
}
}
//
}
}
}
}
void
MENU_CHECK_STEP_SUB
(
void
)
void
MENU_CHECK_STEP_SUB
(
void
)
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
062173ea
...
@@ -120,6 +120,9 @@ uint8_t querendelay = 0;
...
@@ -120,6 +120,9 @@ uint8_t querendelay = 0;
uint8_t
OTAModeBeginTime
;
uint8_t
OTAModeBeginTime
;
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
{
{
R485_0x80_msg
[
9
]
=
0xFF
;
R485_0x80_msg
[
10
]
=
0xFF
;
R485_0x80_msg
[
11
]
=
0xFF
;
if
((
OTAMode
==
1
)
||
(
OTAMode
==
2
))
if
((
OTAMode
==
1
)
||
(
OTAMode
==
2
))
{
{
if
(
OTAModeBeginTime
<=
150
)
if
(
OTAModeBeginTime
<=
150
)
...
@@ -311,27 +314,27 @@ void Sys_Exact_50us_Tasks(void)
...
@@ -311,27 +314,27 @@ void Sys_Exact_50us_Tasks(void)
uint32_t
clearodotimeflash
=
0
;
uint32_t
clearodotimeflash
=
0
;
void
Sys_Exact_100ms_Tasks
(
void
)
void
Sys_Exact_100ms_Tasks
(
void
)
{
{
if
(
clearodotimeflash
<
0xFFFFFFFF
)
//
if (clearodotimeflash < 0xFFFFFFFF)
{
//
{
clearodotimeflash
++
;
//
clearodotimeflash++;
if
(
clearodotimeflash
%
20
==
0
)
//
if (clearodotimeflash % 20 == 0)
{
//
{
if
(
R485_0x80_msg
[
11
]
<
5
)
//
if (R485_0x80_msg[11] < 5)
{
//
{
R485_0x80_msg
[
11
]
++
;
//
R485_0x80_msg[11]++;
R485_0x80_msg
[
10
]
++
;
//
R485_0x80_msg[10]++;
}
//
}
else
//
else
{
//
{
R485_0x80_msg
[
11
]
=
0
;
//
R485_0x80_msg[11] = 0;
R485_0x80_msg
[
10
]
=
0
;
//
R485_0x80_msg[10] = 0;
}
//
}
}
//
}
}
//
}
else
//
else
{
//
{
clearodotimeflash
=
0
;
//
clearodotimeflash = 0;
}
//
}
}
}
/*============================================================================*/
/*============================================================================*/
void
Sys_Enter_Sleep_Mode
(
void
)
void
Sys_Enter_Sleep_Mode
(
void
)
...
...
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