Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
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
ISUZU
VC66_7C
Commits
8903cbc3
Commit
8903cbc3
authored
Mar 18, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整BGU
parent
872dee2d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
54 deletions
+11
-54
Flash_synchronizer.c
source/Application/APP/Telltales/Flash_synchronizer.c
+9
-46
Flash_synchronizer.h
source/Application/APP/Telltales/Flash_synchronizer.h
+0
-5
GUI.c
source/Application/Graphic/GUI/GUI.c
+1
-1
tasks.c
source/System/tasks.c
+1
-2
No files found.
source/Application/APP/Telltales/Flash_synchronizer.c
View file @
8903cbc3
...
...
@@ -14,13 +14,8 @@ volatile uint8_t FlashSync5Hz;
volatile
uint8_t
FlashSync05Hz
;
volatile
uint8_t
FlashSync_2_5_Hz
;
volatile
uint8_t
FlashSync3Hz
;
const
uint8_t
FlashSync1HzTable
[]
=
{
0u
,
0u
,
0u
,
0u
,
0u
,
0u
,
0u
,
0u
,
0u
,
0u
,
1u
,
1u
,
1u
,
1u
,
1u
,
1u
,
1u
,
1u
,
1u
,
1u
,
};
const
uint8_t
FlashSync2HzTable
[]
=
{
0u
,
0u
,
0u
,
0u
,
0u
,
1u
,
1u
,
1u
,
1u
,
1u
,
0u
,
0u
,
0u
,
0u
,
0u
,
1u
,
1u
,
1u
,
1u
,
1u
,
...
...
@@ -39,15 +34,8 @@ const uint8_t FlashSync_2_5_HzTable[] = {0u, 0u, 0u, 0u, 1u, 1u, 1u, 1u, 0u, 0u,
1u
,
1u
,
0u
,
0u
,
0u
,
0u
,
1u
,
1u
,
1u
,
1u
,
};
/* 2.5Hz */
const
uint8_t
FlashSync3HzTable
[]
=
{
0u
,
1u
};
/* 3Hz */
uint8_t
count_10
=
0u
;
//此变量在0~9循环,一周期50ms
uint8_t
count_33
=
0u
;
//此变量在0~32循环,一周期165ms
uint8_t
FlashTimer
=
0u
;
//数组下标,数组元素总数为20
uint8_t
FlashTimer40
=
0u
;
//数组下标,数组元素总数为40
uint8_t
FlashTimer2
=
0u
;
//数组下标,数组元素总数为2
uint8_t
FlashTimer
=
0u
;
uint8_t
FlashTimer40
=
0u
;
/******************************************************************************
函数名:Flash_Sync_Signal_Generation_Service
...
...
@@ -55,49 +43,24 @@ uint8_t FlashTimer2 = 0u;//数组下标,数组元素总数为2
参 数:无
返回值:无
*******************************************************************************
注 意:该服务函数必须每5ms被调用一次
注 意:该服务函数必须每5
0
ms被调用一次
******************************************************************************/
void
Flash_Sync_Signal_Generation_Service
(
void
)
{
count_10
++
;
//每5ms加1
count_33
++
;
//每5ms加1
if
(
count_10
>=
10u
)
FlashTimer
++
;
/*50ms一次 加 1*/
if
(
FlashTimer
>=
20u
)
{
count_10
=
0u
;
{
FlashTimer
++
;
/*50ms一次 加 1*/
if
(
FlashTimer
>=
20u
)
{
FlashTimer
=
0u
;
}
FlashTimer40
++
;
/*50ms一次 加 1*/
if
(
FlashTimer40
>=
40u
)
{
FlashTimer40
=
0u
;
}
}
FlashTimer
=
0u
;
}
if
(
count_33
>=
33u
)
FlashTimer40
++
;
/*50ms一次 加 1*/
if
(
FlashTimer40
>=
40u
)
{
count_33
=
0u
;
FlashTimer2
++
;
/*165ms一次 加 1*/
if
(
FlashTimer2
>=
2
)
{
FlashTimer2
=
0u
;
}
FlashTimer40
=
0u
;
}
FLASH_SYNC_1Hz
=
FlashSync1HzTable
[
FlashTimer
];
/*500ms*/
FLASH_SYNC_2Hz
=
FlashSync2HzTable
[
FlashTimer
];
/*250ms*/
FLASH_SYNC_5Hz
=
FlashSync5HzTable
[
FlashTimer
];
/*100ms*/
FLASH_SYNC_05Hz
=
FlashSync05HzTable
[
FlashTimer40
];
/*1000ms*/
FLASH_SYNC_2_5_Hz
=
FlashSync_2_5_HzTable
[
FlashTimer40
];
/*200ms*/
FLASH_SYNC_3Hz
=
FlashSync3HzTable
[
FlashTimer2
];
/*165ms*/
}
\ No newline at end of file
source/Application/APP/Telltales/Flash_synchronizer.h
View file @
8903cbc3
...
...
@@ -20,9 +20,6 @@ extern volatile uint8_t FlashSync5Hz;
extern
volatile
uint8_t
FlashSync05Hz
;
extern
volatile
uint8_t
FlashSync_2_5_Hz
;
extern
volatile
uint8_t
FlashSync3Hz
;
#define FLASH_SYNC_1Hz FlashSync1Hz
#define FLASH_SYNC_2Hz FlashSync2Hz
#define FLASH_SYNC_4Hz FlashSync4Hz
...
...
@@ -30,8 +27,6 @@ extern volatile uint8_t FlashSync3Hz;
#define FLASH_SYNC_05Hz FlashSync05Hz
#define FLASH_SYNC_2_5_Hz FlashSync_2_5_Hz
/* 2.5Hz闪烁 */
#define FLASH_SYNC_3Hz FlashSync3Hz
/* 3Hz闪烁 */
/******************************************************************************
函数声明
******************************************************************************/
...
...
source/Application/Graphic/GUI/GUI.c
View file @
8903cbc3
...
...
@@ -646,7 +646,7 @@ void GUI_AdBlue_Dispaly(uint8_t Mode)
}
else
if
(
Level_blinking
==
0x03u
)
{
if
(
FLASH_SYNC_
3
Hz
==
1u
)
if
(
FLASH_SYNC_
2_5_
Hz
==
1u
)
{
GUI_General_Display
(
AdBlue_Sprite
,
CN_tianlanyefuhaodeng
,
GUI_BLENDMODE_SRC_OVER
);
/*AdBlue*/
}
...
...
source/System/tasks.c
View file @
8903cbc3
...
...
@@ -134,7 +134,6 @@ void Sys_Run_Mode_5ms_Tasks(void)
COM_RX_Process
();
Id18EF1817_Send_Service
();
Id18033317_Send_Service
();
Flash_Sync_Signal_Generation_Service
();
}
/*==============================================================================
...
...
@@ -196,7 +195,7 @@ void Sys_Run_Mode_20ms_Tasks(void)
void
Sys_Run_Mode_50ms_Tasks
(
void
)
{
Flash_Sync_Signal_Generation_Service
();
Data_Time_Calibration
();
Speed_PPK_Processing
();
Sound_Scheduling_Service
();
...
...
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