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
964c1cad
Commit
964c1cad
authored
Jul 15, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:48976 外发0x450胎压信号,仪表上电偶发前几帧外发0
parent
70584805
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
CAN_CH0_CAN_Communication_Matrix.c
...ce/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.c
+1
-1
Can_User.c
Firmware/Source/Application/CAN_User/Can_User.c
+6
-0
Data_TPMS.c
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
+10
-0
Data_TPMS.h
Firmware/Source/Application/Data_TPMS/Data_TPMS.h
+2
-0
No files found.
Firmware/Source/Application/CAN_APP/CAN_CH0_CAN_Communication_Matrix.c
View file @
964c1cad
...
...
@@ -36,7 +36,7 @@ const st_CANMsgAttribute CAN_CH0_CAN_MSG_CONST_ARRAY[CAN_CH0_ID_TOTAL_MAX] =
1000ul
,
0x341ul
,
((
void
*
)
0
),
(
(
void
*
)
0
),
(
Can_341_Receive
),
((
void
*
)
0
),
},
{
...
...
Firmware/Source/Application/CAN_User/Can_User.c
View file @
964c1cad
...
...
@@ -314,6 +314,7 @@ uint8_t COM_APP_Process(st_CAN_Msg *Msg)
return
0
;
}
extern
uint8_t
Can_341_Flg
;
void
Can_Write
(
st_CAN_Msg
*
Msg
)
{
uint32_t
i
=
0
;
...
...
@@ -339,7 +340,12 @@ void Can_Write(st_CAN_Msg *Msg)
CAN_Transmit
(
CAN0MSG12
,
&
CAN_SendMsg
);
break
;
case
0x450
:
if
(
Can_341_Flg
==
1
)
{
CAN_Transmit
(
CAN0MSG13
,
&
CAN_SendMsg
);
}
break
;
case
0x220
:
CAN_Transmit
(
CAN0MSG10
,
&
CAN_SendMsg
);
...
...
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
View file @
964c1cad
...
...
@@ -4,6 +4,7 @@
_TPMS_Display
TPMS
;
uint32_t
LearnTime_Count
=
0
;
uint32_t
LearnTime_Count1
=
0
;
uint8_t
Can_341_Flg
=
0
;
void
Data_TPMS_KL30_Init
(
void
)
{
uint8_t
TPMS_L
[
2
]
=
{
0
,
0
};
...
...
@@ -27,6 +28,8 @@ void Data_TPMS_KL30_Init ( void )
TPMS
.
TPMS_LOST
=
0
;
LearnTime_Count
=
6001
;
LearnTime_Count1
=
6001
;
Can_341_Flg
=
0
;
}
void
Data_TPMS_KL15_WAKE_UP_Init
(
void
)
{
...
...
@@ -44,6 +47,13 @@ void Data_TPMS_KL15_WAKE_UP_Init ( void )
TPMS
.
TPMS_LOST
=
0
;
LearnTime_Count
=
6001
;
LearnTime_Count1
=
6001
;
Can_341_Flg
=
0
;
}
void
Can_341_Receive
(
void
)
{
Can_341_Flg
=
1
;
}
void
Data_TPMS_Processing_Service
(
void
)
...
...
Firmware/Source/Application/Data_TPMS/Data_TPMS.h
View file @
964c1cad
...
...
@@ -41,4 +41,6 @@ void Data_TPMS_KL15_WAKE_UP_Init ( void );
uint8_t
Get_Front_FirstLearn_Flag
(
void
);
uint8_t
Get_Rear_FirstLearn_Flag
(
void
);
uint8_t
Get_TPMS_CAN_LOST
(
void
);
void
Can_341_Receive
(
void
);
#endif
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