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
96634667
Commit
96634667
authored
Sep 20, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:故障码改为32位
parent
9865a1f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
code.c
Firmware/Source/Application/FaultCode/code.c
+5
-5
code.h
Firmware/Source/Application/FaultCode/code.h
+2
-2
No files found.
Firmware/Source/Application/FaultCode/code.c
View file @
96634667
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
//static uint8_t u8FaultCodeValid = 0;
//static uint8_t u8FaultCodeValid = 0;
FaultCodeList_t
FaultCode_t
;
FaultCodeList_t
FaultCode_t
;
uint
16
_t
FaultCodeList
[
MaxFaultCode
];
uint
32
_t
FaultCodeList
[
MaxFaultCode
];
uint32_t
Get_FaultCodeDtc1
(
void
)
uint32_t
Get_FaultCodeDtc1
(
void
)
{
{
...
@@ -347,7 +347,7 @@ void FaultCode_Service(uint16_t Cycle)
...
@@ -347,7 +347,7 @@ void FaultCode_Service(uint16_t Cycle)
#if 1
#if 1
uint8_t
List_Init
(
FaultCodeList_t
*
CodeList
,
uint
16
_t
Arr
[],
uint8_t
Len
)
uint8_t
List_Init
(
FaultCodeList_t
*
CodeList
,
uint
32
_t
Arr
[],
uint8_t
Len
)
{
{
if
((
CodeList
==
NULL
)
||
(
Arr
==
NULL
))
if
((
CodeList
==
NULL
)
||
(
Arr
==
NULL
))
{
{
...
@@ -366,7 +366,7 @@ uint8_t List_Init(FaultCodeList_t *CodeList, uint16_t Arr[], uint8_t Len)
...
@@ -366,7 +366,7 @@ uint8_t List_Init(FaultCodeList_t *CodeList, uint16_t Arr[], uint8_t Len)
return
0
;
return
0
;
}
}
uint8_t
List_Find
(
FaultCodeList_t
*
CodeList
,
uint
16
_t
FaultCode
)
uint8_t
List_Find
(
FaultCodeList_t
*
CodeList
,
uint
32
_t
FaultCode
)
{
{
if
(
CodeList
==
NULL
)
if
(
CodeList
==
NULL
)
{
{
...
@@ -382,7 +382,7 @@ uint8_t List_Find(FaultCodeList_t *CodeList, uint16_t FaultCode)
...
@@ -382,7 +382,7 @@ uint8_t List_Find(FaultCodeList_t *CodeList, uint16_t FaultCode)
return
0
;
return
0
;
}
}
uint8_t
List_add
(
FaultCodeList_t
*
CodeList
,
uint
16
_t
FaultCode
)
uint8_t
List_add
(
FaultCodeList_t
*
CodeList
,
uint
32
_t
FaultCode
)
{
{
if
(
CodeList
==
NULL
)
if
(
CodeList
==
NULL
)
{
{
...
@@ -459,7 +459,7 @@ void FaultCode_Servers(void)
...
@@ -459,7 +459,7 @@ void FaultCode_Servers(void)
}
}
uint
16
_t
List_Display
(
FaultCodeList_t
*
CodeList
,
uint16_t
*
TimeCount
)
uint
32
_t
List_Display
(
FaultCodeList_t
*
CodeList
,
uint16_t
*
TimeCount
)
{
{
if
((
CodeList
==
NULL
)
||
(
TimeCount
==
NULL
))
if
((
CodeList
==
NULL
)
||
(
TimeCount
==
NULL
))
{
{
...
...
Firmware/Source/Application/FaultCode/code.h
View file @
96634667
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
typedef
struct
__attribute__
((
aligned
(
4
)))
typedef
struct
__attribute__
((
aligned
(
4
)))
{
{
uint
16
_t
*
code_list
;
uint
32
_t
*
code_list
;
uint8_t
hade
;
uint8_t
hade
;
uint8_t
tail
;
uint8_t
tail
;
uint8_t
code_num
;
uint8_t
code_num
;
...
@@ -67,7 +67,7 @@ typedef struct __attribute__((aligned(4)))
...
@@ -67,7 +67,7 @@ typedef struct __attribute__((aligned(4)))
extern
uint32_t
Get_Current_FaultCode
(
void
);
extern
uint32_t
Get_Current_FaultCode
(
void
);
//extern uint8_t Get_FaultCode_Valid(void);
//extern uint8_t Get_FaultCode_Valid(void);
uint8_t
List_Init
(
FaultCodeList_t
*
CodeList
,
uint
16
_t
Arr
[],
uint8_t
Len
);
uint8_t
List_Init
(
FaultCodeList_t
*
CodeList
,
uint
32
_t
Arr
[],
uint8_t
Len
);
void
FaultCode_Servers
(
void
);
void
FaultCode_Servers
(
void
);
#endif
#endif
\ No newline at end of file
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