Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
1ebd3cc5
Commit
1ebd3cc5
authored
Jun 26, 2024
by
耨义强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat(修改段码显示):
parent
6249643f
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
551 additions
and
522 deletions
+551
-522
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+26
-0
SEG_DISPLAY.c
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
+160
-160
SEG_DISPLAY.h
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.h
+3
-0
SEG_Ref.h
Firmware/Source/Application/SEG_DISPLAY/SEG_Ref.h
+360
-360
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+2
-2
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
1ebd3cc5
...
@@ -254,6 +254,32 @@ void Gauge_Service(void)
...
@@ -254,6 +254,32 @@ void Gauge_Service(void)
Gauge_Trip_Display
();
Gauge_Trip_Display
();
Gauge_FuelDial_Display
();
Gauge_FuelDial_Display
();
Gauge_EspeedDial_Display
();
Gauge_EspeedDial_Display
();
SEG_SET_Clock
(
22
,
22
,
1
,
1
,
1
);
SEG_SET_Fault_Code
(
1
,
2222
);
SEG_SET_EleDial
(
1
,
10
,
22
);
SEG_SET_FuelDial
(
1
,
8
);
SEG_SET_GEAR
(
1
,
1
);
SEG_SET_Cutterhead
(
1
,
2
);
SEG_SET_LED_STS
(
0
,
1
);
SEG_SET_LED_STS
(
1
,
1
);
SEG_SET_LED_STS
(
2
,
1
);
SEG_SET_LED_STS
(
3
,
1
);
SEG_SET_LED_STS
(
4
,
1
);
SEG_SET_LED_STS
(
5
,
1
);
SEG_SET_LED_STS
(
6
,
1
);
SEG_SET_LED_STS
(
7
,
1
);
SEG_SET_LED_STS
(
8
,
1
);
SEG_SET_LED_STS
(
9
,
1
);
SEG_SET_LED_STS
(
10
,
1
);
SEG_SET_LED_STS
(
11
,
1
);
SEG_SET_LED_STS
(
12
,
1
);
SEG_SET_LED_STS
(
13
,
1
);
SEG_SET_LED_STS
(
14
,
1
);
SEG_SET_LED_STS
(
15
,
1
);
SEG_SET_LED_STS
(
16
,
1
);
SEG_SET_LED_STS
(
17
,
1
);
SEG_SET_LED_STS
(
18
,
1
);
SEG_SET_Frame
(
1
);
}
}
else
else
{
{
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.c
View file @
1ebd3cc5
...
@@ -542,19 +542,19 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
...
@@ -542,19 +542,19 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC1_SEG071
=
IC_SEG_ON
;
IC1_SEG070
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG071
=
IC_SEG_OFF
;
IC1_SEG070
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC1_SEG070
=
IC_SEG_ON
;
IC1_SEG071
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG070
=
IC_SEG_OFF
;
IC1_SEG071
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -601,19 +601,19 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
...
@@ -601,19 +601,19 @@ _Fun_Res SEG_SET_EleDial(uint8_t m_Flag, uint8_t m_SEG, uint16_t m_NUM)
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC1_SEG063
=
IC_SEG_ON
;
IC1_SEG061
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG063
=
IC_SEG_OFF
;
IC1_SEG061
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC1_SEG061
=
IC_SEG_ON
;
IC1_SEG063
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG061
=
IC_SEG_OFF
;
IC1_SEG063
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -759,19 +759,19 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
...
@@ -759,19 +759,19 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC1_SEG08
9
=
IC_SEG_ON
;
IC1_SEG08
8
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG08
9
=
IC_SEG_OFF
;
IC1_SEG08
8
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC1_SEG08
8
=
IC_SEG_ON
;
IC1_SEG08
9
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG08
8
=
IC_SEG_OFF
;
IC1_SEG08
9
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -819,19 +819,19 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
...
@@ -819,19 +819,19 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC1_SEG09
6
=
IC_SEG_ON
;
IC1_SEG09
5
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG09
6
=
IC_SEG_OFF
;
IC1_SEG09
5
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC1_SEG09
5
=
IC_SEG_ON
;
IC1_SEG09
6
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG09
5
=
IC_SEG_OFF
;
IC1_SEG09
6
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -878,19 +878,19 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
...
@@ -878,19 +878,19 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC1_SEG10
3
=
IC_SEG_ON
;
IC1_SEG10
2
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG10
3
=
IC_SEG_OFF
;
IC1_SEG10
2
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC1_SEG10
2
=
IC_SEG_ON
;
IC1_SEG10
3
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG10
2
=
IC_SEG_OFF
;
IC1_SEG10
3
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -937,19 +937,19 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
...
@@ -937,19 +937,19 @@ _Fun_Res SEG_SET_Fault_Code(uint8_t m_Flag, uint16_t m_NUM)
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC1_SEG1
11
=
IC_SEG_ON
;
IC1_SEG1
09
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG1
11
=
IC_SEG_OFF
;
IC1_SEG1
09
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC1_SEG1
09
=
IC_SEG_ON
;
IC1_SEG1
11
=
IC_SEG_ON
;
}
}
else
else
{
{
IC1_SEG1
09
=
IC_SEG_OFF
;
IC1_SEG1
11
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -2448,19 +2448,19 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
...
@@ -2448,19 +2448,19 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC2_SEG03
9
=
IC_SEG_ON
;
IC2_SEG03
7
=
IC_SEG_ON
;
}
}
else
else
{
{
IC2_SEG03
9
=
IC_SEG_OFF
;
IC2_SEG03
7
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC2_SEG03
7
=
IC_SEG_ON
;
IC2_SEG03
9
=
IC_SEG_ON
;
}
}
else
else
{
{
IC2_SEG03
7
=
IC_SEG_OFF
;
IC2_SEG03
9
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -2506,19 +2506,19 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
...
@@ -2506,19 +2506,19 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC2_SEG0
81
=
IC_SEG_ON
;
IC2_SEG0
34
=
IC_SEG_ON
;
}
}
else
else
{
{
IC2_SEG0
81
=
IC_SEG_OFF
;
IC2_SEG0
34
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC2_SEG0
34
=
IC_SEG_ON
;
IC2_SEG0
81
=
IC_SEG_ON
;
}
}
else
else
{
{
IC2_SEG0
34
=
IC_SEG_OFF
;
IC2_SEG0
81
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -2584,19 +2584,19 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
...
@@ -2584,19 +2584,19 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC2_SEG0
86
=
IC_SEG_ON
;
IC2_SEG0
31
=
IC_SEG_ON
;
}
}
else
else
{
{
IC2_SEG0
86
=
IC_SEG_OFF
;
IC2_SEG0
31
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC2_SEG0
31
=
IC_SEG_ON
;
IC2_SEG0
86
=
IC_SEG_ON
;
}
}
else
else
{
{
IC2_SEG0
31
=
IC_SEG_OFF
;
IC2_SEG0
86
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
@@ -2642,19 +2642,19 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
...
@@ -2642,19 +2642,19 @@ _Fun_Res SEG_SET_Clock(uint8_t m_hour, uint8_t m_minute, uint8_t m_icon, uint8_t
}
}
if
(
Bit_Is_Set
(
m8
,
5
)
)
if
(
Bit_Is_Set
(
m8
,
5
)
)
{
{
IC2_SEG0
90
=
IC_SEG_ON
;
IC2_SEG0
28
=
IC_SEG_ON
;
}
}
else
else
{
{
IC2_SEG0
90
=
IC_SEG_OFF
;
IC2_SEG0
28
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
4
)
)
if
(
Bit_Is_Set
(
m8
,
4
)
)
{
{
IC2_SEG0
28
=
IC_SEG_ON
;
IC2_SEG0
90
=
IC_SEG_ON
;
}
}
else
else
{
{
IC2_SEG0
28
=
IC_SEG_OFF
;
IC2_SEG0
90
=
IC_SEG_OFF
;
}
}
if
(
Bit_Is_Set
(
m8
,
6
)
)
if
(
Bit_Is_Set
(
m8
,
6
)
)
{
{
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_DISPLAY.h
View file @
1ebd3cc5
...
@@ -73,6 +73,9 @@ _Fun_Res SEG_SET_ODO_NUM(uint8_t m_Flag,uint32_t m_NUM);
...
@@ -73,6 +73,9 @@ _Fun_Res SEG_SET_ODO_NUM(uint8_t m_Flag,uint32_t m_NUM);
/**@brief 小计里程显示函数*/
/**@brief 小计里程显示函数*/
_Fun_Res
SEG_SET_TRIP_NUM
(
uint8_t
m_Flag
,
uint16_t
m_NUM
);
_Fun_Res
SEG_SET_TRIP_NUM
(
uint8_t
m_Flag
,
uint16_t
m_NUM
);
/**@brief 故障码显示函数*/
_Fun_Res
SEG_SET_Fault_Code
(
uint8_t
m_Flag
,
uint16_t
m_NUM
);
/**@brief 时间显示函数*/
/**@brief 时间显示函数*/
_Fun_Res
SEG_SET_Clock
(
uint8_t
m_hour
,
uint8_t
m_minute
,
uint8_t
m_icon
,
uint8_t
m_Flag1
,
uint8_t
m_Flag2
);
_Fun_Res
SEG_SET_Clock
(
uint8_t
m_hour
,
uint8_t
m_minute
,
uint8_t
m_icon
,
uint8_t
m_Flag1
,
uint8_t
m_Flag2
);
...
...
Firmware/Source/Application/SEG_DISPLAY/SEG_Ref.h
View file @
1ebd3cc5
This diff is collapsed.
Click to expand it.
Firmware/Source/System/Sys_Task_List.c
View file @
1ebd3cc5
...
@@ -62,9 +62,9 @@ void Sys_50ms_Tasks(void)
...
@@ -62,9 +62,9 @@ void Sys_50ms_Tasks(void)
BU98R10_Update_Request
();
BU98R10_Update_Request
();
LED_Driver_Scan_Refresh
();
LED_Driver_Scan_Refresh
();
Telltales_Management
();
Telltales_Management
();
//
Gauge_Service();
Gauge_Service
();
// Key_Check_Service();
// Key_Check_Service();
SEG_SET_EleDial
(
1
,
10
,
10
);
}
}
uint8_t
u8LEDDriverCheckCount
=
0U
;
uint8_t
u8LEDDriverCheckCount
=
0U
;
...
...
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