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
1b7711ed
Commit
1b7711ed
authored
Feb 24, 2025
by
李冠华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修改4字节对齐方式
parent
bd7e2b42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+5
-5
Telltales_user.h
Firmware/Source/Component/Telltales/Telltales_user.h
+2
-2
No files found.
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
1b7711ed
...
@@ -68,8 +68,8 @@ uint8_t g_EngineOilLowCount = 0U;
...
@@ -68,8 +68,8 @@ uint8_t g_EngineOilLowCount = 0U;
uint8_t
g_EngineOilLowStatus
=
0U
;
uint8_t
g_EngineOilLowStatus
=
0U
;
uint8_t
g_VoltLowStatus
=
0U
;
uint8_t
g_VoltLowStatus
=
0U
;
uint8_t
g_VoltLowCount
=
0U
;
uint8_t
g_VoltLowCount
=
0U
;
uint8_t
g_OverLoadStatus
[
12
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
/*必须4字节对齐,不然会出错*/
__align
(
4
)
uint8_t
g_OverLoadStatus
[
9
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
/*必须4字节对齐,不然会出错*/
uint8_t
g_OverLoadCount
[
12
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
/*必须4字节对齐,不然会出错*/
__align
(
4
)
uint8_t
g_OverLoadCount
[
9
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
/*必须4字节对齐,不然会出错*/
uint8_t
g_GrassSwStatus
=
0U
;
uint8_t
g_GrassSwStatus
=
0U
;
uint8_t
g_GrassSwCount
=
0U
;
uint8_t
g_GrassSwCount
=
0U
;
uint8_t
g_SeatStatus
=
0U
;
uint8_t
g_SeatStatus
=
0U
;
...
@@ -86,8 +86,8 @@ uint8_t g_PtoSwStatus = 0U;
...
@@ -86,8 +86,8 @@ uint8_t g_PtoSwStatus = 0U;
uint8_t
g_PtoSwCount
=
0U
;
uint8_t
g_PtoSwCount
=
0U
;
uint8_t
g_SysFltLampStatus
=
0U
;
uint8_t
g_SysFltLampStatus
=
0U
;
uint8_t
g_SysFltLampCount
=
0U
;
uint8_t
g_SysFltLampCount
=
0U
;
uint8_t
g_BmsFltStatus
[
2
]
=
{
0U
,
0U
};
__align
(
4
)
uint8_t
g_BmsFltStatus
[
2
]
=
{
0U
,
0U
};
uint8_t
g_BmsFltCount
[
2
]
=
{
0U
,
0U
};
__align
(
4
)
uint8_t
g_BmsFltCount
[
2
]
=
{
0U
,
0U
};
uint8_t
g_TOTALSigChargeStatus
=
0U
;
uint8_t
g_TOTALSigChargeStatus
=
0U
;
uint8_t
g_TOTALSigChargeCount
=
0U
;
uint8_t
g_TOTALSigChargeCount
=
0U
;
const
LED_Attribute_st
LED_Attribute
[
LED_Max
]
=
const
LED_Attribute_st
LED_Attribute
[
LED_Max
]
=
...
@@ -122,7 +122,7 @@ const LED_Attribute_st LED_Attribute[LED_Max] =
...
@@ -122,7 +122,7 @@ const LED_Attribute_st LED_Attribute[LED_Max] =
{
em_LED_Power_Battery_Failure_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_Power_Battery_Failure_R_Judgement
,
LED_Power_Battery_Failure_R_Execution
},
{
em_LED_Power_Battery_Failure_R
,
NoSelfCheck
,
ExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_Power_Battery_Failure_R_Judgement
,
LED_Power_Battery_Failure_R_Execution
},
};
};
Tellib_uint8_t
Tel_Mem
[
Tel_MEM_Block_Size
*
LED_Max
+
Tel_MEM_Block_Addition
];
__align
(
4
)
Tellib_uint8_t
Tel_Mem
[
Tel_MEM_Block_Size
*
LED_Max
+
Tel_MEM_Block_Addition
];
uint8_t
PowerSts_num
;
uint8_t
PowerSts_num
;
void
Telltales_Init
(
void
)
void
Telltales_Init
(
void
)
{
{
...
...
Firmware/Source/Component/Telltales/Telltales_user.h
View file @
1b7711ed
...
@@ -49,8 +49,8 @@ extern uint8_t g_EngineOilLowCount;
...
@@ -49,8 +49,8 @@ extern uint8_t g_EngineOilLowCount;
extern
uint8_t
g_EngineOilLowStatus
;
extern
uint8_t
g_EngineOilLowStatus
;
extern
uint8_t
g_VoltLowStatus
;
extern
uint8_t
g_VoltLowStatus
;
extern
uint8_t
g_VoltLowCount
;
extern
uint8_t
g_VoltLowCount
;
extern
uint8_t
g_OverLoadStatus
[
12
];
extern
uint8_t
g_OverLoadStatus
[
9
];
extern
uint8_t
g_OverLoadCount
[
12
];
extern
uint8_t
g_OverLoadCount
[
9
];
extern
uint8_t
g_GrassSwStatus
;
extern
uint8_t
g_GrassSwStatus
;
extern
uint8_t
g_GrassSwCount
;
extern
uint8_t
g_GrassSwCount
;
extern
uint8_t
g_SeatStatus
;
extern
uint8_t
g_SeatStatus
;
...
...
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