Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
eb9f3b99
Commit
eb9f3b99
authored
Nov 20, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:里程库的函数放在100ms中断里调用
parent
fd1a0b87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+10
-3
No files found.
Firmware/Source/System/Sys_Task_List.c
View file @
eb9f3b99
...
...
@@ -80,7 +80,7 @@ void Sys_100ms_Tasks(void)
S3_ServerCNTT
();
Get_DisTime_Service
();
Fuel_Cal_Sevice
(
100u
);
Services_Mileage_Callback
();
//
Services_Mileage_Callback();
// Data_Mileage_Clear();
// RTE_GPIO_Config(RTE_GPIO_PORT05_PIN04, GpioOut_High);
//BackLight_Process();
...
...
@@ -89,6 +89,7 @@ void Sys_100ms_Tasks(void)
// aaa = Menu_Item_Select_Get(MENU_ITEM_SELECT_AUTO);
}
static
uint16_t
task_2ms
=
0u
;
static
uint16_t
task_100ms
=
0u
;
void
Sys_Exact_50us_Tasks
(
void
)
{
static
uint32_t
task_1ms
=
0u
;
...
...
@@ -102,9 +103,15 @@ void Sys_Exact_50us_Tasks(void)
}
task_2ms
++
;
if
(
task_2ms
>=
40
)
if
(
task_2ms
>=
40
U
)
{
task_2ms
=
0
;
task_2ms
=
0
U
;
AMT630H_Timer
(
2
);
}
task_100ms
++
;
if
(
task_100ms
>=
2000U
)
{
task_100ms
=
0U
;
Services_Mileage_Callback
();
}
}
\ No newline at end of file
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