Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
baizhengyuan
TianYing_ty100
Commits
99eaec34
Commit
99eaec34
authored
Aug 29, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:依据横展,转速200ms刷新。删除屏蔽的不使用代码
parent
c0f75547
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
21 deletions
+23
-21
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+11
-7
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+12
-14
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
99eaec34
...
...
@@ -62,7 +62,7 @@ void Clear_Bu98(void)
}
}
uint8_t
u8VspeedCount
=
0
;
void
Gauge_Service
(
void
)
{
static
uint16_t
VSpeed_Count
=
0u
;
...
...
@@ -93,11 +93,7 @@ void Gauge_Service(void)
{
LED_Driver_Channel_Set
(
LampChannel_0
,
k
,
LED_OFF
);
}
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_35_ODO, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_34_TRIP, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_07_Screen_Time, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_08_KMH, LED_OFF);
//LED_Driver_Channel_Set(LampChannel_0, LampCh0_09_MPH, LED_OFF);
}
}
else
...
...
@@ -112,8 +108,16 @@ void Gauge_Service(void)
// BU98R10Chip1DDRAM.Byte[i] = 0x77;
//}
if
(
u8VspeedCount
<
3
)
{
u8VspeedCount
++
;
}
else
{
u8VspeedCount
=
0
;
SEG_SET_VSpeed_NUM
(
1u
,
Get_DispVechileSpeed
(
)
/
10u
,
Get_Dis_KM_Unit
());
}
SEG_SET_VSpeed_NUM
(
1u
,
Get_DispVechileSpeed
(
)
/
10u
,
Get_Dis_KM_Unit
());
SEG_SET_ODO_TRIP_FAULTCODE_TCS_DIS
(
Get_Dis_KM_Unit
(),
Get_ODO_Value
()
/
10u
,
Get_Trip_Value
());
Gauge_Clock_Display
();
...
...
Firmware/Source/System/Sys_Task_List.c
View file @
99eaec34
...
...
@@ -37,13 +37,12 @@ void Sys_5ms_Tasks(void)
{
Flash_Sync_Signal_Generation_Service
();
}
}
//uint8_t ljs_buf[200] = {0};
void
Sys_10ms_Tasks
(
void
)
{
//memset(ljs_buf, 0x55, 200);
Line_In_Debounce_Service
(
10u
);
{
Line_In_Debounce_Service
(
10u
);
if
(
Common_GetIgnOnTime
()
>=
3000
)
{
Key_Service
();
...
...
@@ -57,7 +56,7 @@ void Sys_10ms_Tasks(void)
Data_TPMS_Processing_Service
();
Protocol_Service
();
Protocol_Send_Service
();
//Uart0_IntSend(ljs_buf, 200) ;
FaultCode_Service
(
10u
);
}
...
...
@@ -68,14 +67,14 @@ void Sys_20ms_Tasks(void)
Data_Vehicle_Speed_Processing_Service
();
Data_Engine_Speed_Processing_Service
();
Data_Coolant_Temp_Processing_Service
();
//Data_Voltage_Processing_Service();
BU98R10_Update_Request
();
}
void
Sys_50ms_Tasks
(
void
)
{
// BU98R10_Update_Request();
LED_Driver_Scan_Refresh
();
Telltales_Management
();
Gauge_Service
();
...
...
@@ -83,7 +82,7 @@ void Sys_50ms_Tasks(void)
}
uint8_t
u8LEDDriverCheckCount
=
0U
;
//uint16_t ljs_voltage = 0;
void
Sys_100ms_Tasks
(
void
)
{
if
((
PageType
!=
Page_Time_Hour
)
&&
(
PageType
!=
Page_Time_Minute
))
...
...
@@ -97,10 +96,9 @@ void Sys_100ms_Tasks(void)
BackLight_Process
();
Services_Mileage_Callback
();
Data_Voltage_Processing_Service
();
S3_ServerCNTT
();
//ECU_FaultCode_Processing_Service();
S3_ServerCNTT
();
Send_UUID_To_Esp32
();
//ljs_voltage = ADC_Conv_Single_Channel(ADC_CH_KL15_VOLTAGE);
if
(
u8LEDDriverCheckCount
>=
10U
)
{
u8LEDDriverCheckCount
=
0U
;
...
...
@@ -119,7 +117,7 @@ void Sys_100ms_Tasks(void)
{
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Disable
);
}
//R_test = ADC_Read_Signal(ADC_CH_FUEL1);
}
...
...
@@ -140,5 +138,5 @@ void Sys_Exact_50us_Tasks(void)
task_1ms
=
0U
;
eeprom_1ms_timeCount
(
);
}
//u32YZHDCount++;
}
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