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
TY
TianYing_ty100
Commits
74dc9945
Commit
74dc9945
authored
Sep 10, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:代码评审问题:增加结构体对齐,增加零件号注释
parent
6cf5692e
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
20 additions
and
19 deletions
+20
-19
BackLight.h
Firmware/Source/Application/BackLight/BackLight.h
+1
-1
Can_User.h
Firmware/Source/Application/CAN_User/Can_User.h
+1
-1
CommonInterface.h
...ware/Source/Application/CommonInterface/CommonInterface.h
+2
-2
Data_Voltage.h
Firmware/Source/Application/Data_Voltage/Data_Voltage.h
+1
-1
code.h
Firmware/Source/Application/FaultCode/code.h
+2
-2
GUI_Display.h
Firmware/Source/Application/GUI_Display/GUI_Display.h
+3
-3
Key_user.h
Firmware/Source/Component/Key/Key_user.h
+2
-2
LED_Driver.h
Firmware/Source/Component/LED_Driver/LED_Driver.h
+1
-1
Line_In.h
Firmware/Source/Component/Line_In/Line_In.h
+1
-1
Line_In_user.c
Firmware/Source/Component/Line_In/Line_In_user.c
+1
-1
PowerManagement.h
Firmware/Source/Component/PowerManagement/PowerManagement.h
+1
-1
Service_Interval.h
...ware/Source/Component/Service_Interval/Service_Interval.h
+2
-2
System_Monitor.h
Firmware/Source/Component/System_Monitor/System_Monitor.h
+1
-1
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+1
-0
No files found.
Firmware/Source/Application/BackLight/BackLight.h
View file @
74dc9945
...
...
@@ -2,7 +2,7 @@
#define _BACKLIGHT_H_
#include "common.h"
#include "Application.h"
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint8_t
Duty
;
uint8_t
Cycle
;
...
...
Firmware/Source/Application/CAN_User/Can_User.h
View file @
74dc9945
...
...
@@ -22,7 +22,7 @@ Bus-off
#define RSCAN0_BUS_OFF_LV1_RECOVERY_TIME 90U
#define RSCAN0_BUS_OFF_LV2_RECOVERY_TIME 1000U
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint8_t
Status
;
uint8_t
Timer
;
...
...
Firmware/Source/Application/CommonInterface/CommonInterface.h
View file @
74dc9945
...
...
@@ -2,8 +2,8 @@
#define _COMMON_INTERFACE_H_
#include "Components.h"
#define TY200_080000b 0
#define TY200_080000b_ty 1
#define TY200_080000b 0
//不带胎压功能 TY100
#define TY200_080000b_ty 1
//带胎压功能 TY200
#define IC_Current TY200_080000b_ty //选择当前程序为哪个零件号的仪表
...
...
Firmware/Source/Application/Data_Voltage/Data_Voltage.h
View file @
74dc9945
...
...
@@ -3,7 +3,7 @@
#include "common.h"
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint8_t
Buffer
[
30
];
uint8_t
Cnt
;
...
...
Firmware/Source/Application/FaultCode/code.h
View file @
74dc9945
...
...
@@ -28,7 +28,7 @@ typedef uint32_t (*FaultCodeCallback)(void); /* 故障码回调函数 */
typedef
uint16_t
(
*
FaultCodeNumback
)(
void
);
/* 故障码个数回调函数 */
typedef
uint16_t
(
*
FaultCodeValidback
)(
void
);
/* 故障码有效回调函数 */
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint32_t
u16FaultCode
;
/* 故障码 */
uint16_t
u16FaultCodeCount
;
/* 故障码总数 */
...
...
@@ -36,7 +36,7 @@ typedef struct
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
FaultCodeCallback
callbacks
[
NUM_FAULT_TYPES
];
FaultCodeNumback
FaultCodeNumCbk
;
...
...
Firmware/Source/Application/GUI_Display/GUI_Display.h
View file @
74dc9945
...
...
@@ -5,13 +5,13 @@
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint16_t
value
;
uint8_t
segNum
;
}
PowerSegMap_st_t
;
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint16_t
value
;
uint8_t
segNum
;
...
...
@@ -19,7 +19,7 @@ typedef struct
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint16_t
Year
;
uint8_t
Month
;
...
...
Firmware/Source/Component/Key/Key_user.h
View file @
74dc9945
...
...
@@ -5,13 +5,13 @@
#include "common.h"
#include "rtc.h"
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint16_t
Back_Time_Left
;
uint8_t
Back_Time_Left_Flag
;
}
_Menu_Infor
;
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
uint8_t
Set_Hour
;
uint8_t
Set_Minute
;
...
...
Firmware/Source/Component/LED_Driver/LED_Driver.h
View file @
74dc9945
...
...
@@ -29,7 +29,7 @@ typedef void (*LEDDriver_ShutdownPin_Set)(LED_Driver_uint8_t u8Level);
typedef
void
(
*
LEDDriver_Feed_Dog
)(
void
);
typedef
void
(
*
LEDDriver_Delay_10us
)(
LED_Driver_uint16_t
u16Count
);
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
/*芯片数量*/
LED_Driver_uint8_t
u8LEDDriverChipNum
;
...
...
Firmware/Source/Component/Line_In/Line_In.h
View file @
74dc9945
...
...
@@ -33,7 +33,7 @@ typedef Linelib_uint16_t (*LineIn_GetPowerMode)(void);
* @brief 硬线去抖属性结构体 \n
* 定义报接收文属性
*/
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
Linelib_uint8_t
DefaultLevel
;
/**< 初始电平 LEVEL_LOW /LEVEL_HIGH */
Linelib_uint8_t
TriggerLevel
;
/**< 触发电平 LEVEL_LOW /LEVEL_HIGH */
...
...
Firmware/Source/Component/Line_In/Line_In_user.c
View file @
74dc9945
...
...
@@ -3,7 +3,7 @@
#include "Components.h"
#include "Application.h"
__attribute__
((
aligned
(
4
)))
const
Line_In_Attribute_st
g_stLineInAttribute
[
LINE_IN_MAX
]
=
{
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_TurnLeft
,
},
...
...
Firmware/Source/Component/PowerManagement/PowerManagement.h
View file @
74dc9945
...
...
@@ -43,7 +43,7 @@ typedef Power_Status_em (*pfunc_Power_ON)(void);
typedef
Power_Status_em
(
*
pfunc_Power_SLEEP
)(
void
);
typedef
Power_Status_em
(
*
pfunc_Power_LIM
)(
void
);
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
pfunPower_KL30_Init
Pwr_KL30_Init
;
pfunPower_IG_OFF_Init
Pwr_IG_OFF_Init
;
...
...
Firmware/Source/Component/Service_Interval/Service_Interval.h
View file @
74dc9945
...
...
@@ -32,7 +32,7 @@ typedef Intlib_uint32_t (*Int_ReadODO)(void);
typedef
void
(
*
Int_EEPromWrite
)(
Intlib_uint32_t
u32Data
[],
Intlib_uint16_t
u16Len
);
typedef
void
(
*
Int_EEPromRead
)(
Intlib_uint32_t
u32Data
[],
Intlib_uint16_t
u16Len
);
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
Int_PowerSts
PowerSts_Cbk
;
/**< 获取系统电源状态回调 */
Int_ReadODO
ReadODO_Cbk
;
/**< 获取当前总计里程回调 */
...
...
@@ -40,7 +40,7 @@ typedef struct
Int_EEPromRead
EEPromRead_Cbk
;
/**< 从EEPROM读取保养相关数据回调 */
}
Maintain_Func_t
;
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
Intlib_uint32_t
IntervalDayEnable
;
/**< 保养天数功能使能,0:无此功能 1:使能 */
Intlib_uint32_t
IntervalKm
;
/**< 系统设定的保养里程间隔,单位km,这里特指首次保养的里程间隔,如不区分首次,则为默认值 */
...
...
Firmware/Source/Component/System_Monitor/System_Monitor.h
View file @
74dc9945
...
...
@@ -47,7 +47,7 @@ typedef monitorlib_uint8_t (*Get_LineInStatus)(void);
typedef
void
(
*
COMMON_Delay
)(
monitorlib_uint32_t
mMs
);
typedef
void
(
*
pfunLogic
)(
void
);
typedef
struct
typedef
struct
__attribute__
((
aligned
(
4
)))
{
Get_Voltage_Vaild
SysGet_KL30_Valid
;
Get_Voltage_Vaild
SysGet_KL15_Valid
;
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
74dc9945
...
...
@@ -47,6 +47,7 @@ Tellib_uint16_t Battery_Voltage_valid = 0;
Tellib_uint8_t
LED_TCS_STATE
=
0
;
Tellib_uint8_t
LED_TCS_CUR_STATE
=
0
;
Tellib_uint8_t
LED_TCS_VALUE
=
0
;
__align
(
4
)
const
LED_Attribute_st
LED_Attribute
[
LED_Max
]
=
{
/* 指示灯索引 是否自检 外部信号自检 工作电源状态 自检开始时间 自检持续时间 指示灯点亮条件 指示灯执行函数 */
...
...
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