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
4802568c
Commit
4802568c
authored
Aug 17, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'CHENJIALE' of
http://tyw-server.synology.me:12345/ty/tianying_ty100
into lijianshuang
parents
dd3d242c
8490aef1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
6 deletions
+62
-6
Can_User.c
Firmware/Source/Application/CAN_User/Can_User.c
+28
-0
Can_User.h
Firmware/Source/Application/CAN_User/Can_User.h
+1
-1
Data_TPMS.c
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
+1
-1
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+32
-4
No files found.
Firmware/Source/Application/CAN_User/Can_User.c
View file @
4802568c
...
...
@@ -236,11 +236,39 @@ void COM_CAN_Init(void)
Can_RX_BuffInit
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_CAN_MSG_CONST_ARRAY
,
CAN_CH0_ID_TOTAL_MAX
);
CAN_RX_SetEnable
(
&
CAN_CH0_CanMsgOp
,
CAN_N_RX_Enable
);
}
void
CAN_TX_Init
(
void
)
{
memset
(
pTXBuff
,
0
,
sizeof
(
pTXBuff
));
CAN_CH0_CanMsgTxOp
.
CanMsg
=
(
st_CAN_SendOperation
*
)
pTXBuff
;
Can_TX_BuffInit
(
&
CAN_CH0_CanMsgTxOp
,
CAN_CH0_CANSendAttr
,
CAN_CH0_ID_SEND_TOTAL
,
COM_APP_Process
);
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Disable
);
}
void
Can_QuickTimer_Init
(
void
)
{
uint32_t
i
=
0u
;
...
...
Firmware/Source/Application/CAN_User/Can_User.h
View file @
4802568c
...
...
@@ -31,7 +31,7 @@ typedef struct
}
RSCAN0BusoffMonitorStruct
;
extern
void
CAN_TX_Init
(
void
);
extern
void
Can_Tx_Apply_Buff
(
void
);
extern
void
Can_RX_Apply_Buff
(
void
);
extern
void
Can_BusOff_Recover
(
uint8_t
deltaTime
);
...
...
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
View file @
4802568c
...
...
@@ -357,7 +357,7 @@ void Data_TPMS_Processing_Service ( void )
Front_TPMS
=
Get_CAN_CH0_ID_341_Sig_Front_Pressure
();
Rear_TPMS
=
Get_CAN_CH0_ID_341_Sig_Rear_Pressure
();
if
(
Common_Get_IG_Sts
()
==
COMMON_POWER_ON
)
if
(
1
)
{
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CAN_0x341_Msg_Count
)
==
CAN_SIG_LOST
)
{
...
...
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
4802568c
...
...
@@ -52,6 +52,20 @@ static void Power_KL30_Init(void)
Data_TPMS_KL30_Init
();
CAN_TX_Count_Init
();
CanMSg_XMS_Analysis
(
&
CAN_CH0_CanMsgOp
,
2u
);
CanMSg_XMS_Analysis
(
&
CAN_CH0_CanMsgOp
,
2u
);
CanMSg_XMS_Analysis
(
&
CAN_CH0_CanMsgOp
,
2u
);
Data_TPMS_Processing_Service
();
CAN_TX_Init
();
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Enable
);
...
...
@@ -97,8 +111,8 @@ static void Power_KL30_Init(void)
RTE_RTC_Init
(
RTCInformation
);
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
WAKEUP_KL15_In
,
Trigger_Rising
);
FaultCode_Init
();
// Data_TPMS_Processing_Service();
}
extern
uint32_t
PowerIgnOffTimeLine
;
...
...
@@ -109,7 +123,7 @@ static void Power_Wakeup_Init(void)
Simulated_IIC_2_Init
();
Gpio_Init
(
Gpio_WakeUp_Init
);
Can_Init
();
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Enable
);
DFlash_init
();
Data_Read_DiagPara
();
eeprom_StoreInfo_Init
();
...
...
@@ -117,6 +131,20 @@ static void Power_Wakeup_Init(void)
Data_User_Mileage_WakeupInit
();
BU98R10_Init
();
Sys_WakeUp_Init
();
Data_TPMS_KL15_WAKE_UP_Init
();
CanMSg_XMS_Analysis
(
&
CAN_CH0_CanMsgOp
,
2u
);
CanMSg_XMS_Analysis
(
&
CAN_CH0_CanMsgOp
,
2u
);
CanMSg_XMS_Analysis
(
&
CAN_CH0_CanMsgOp
,
2u
);
Data_TPMS_Processing_Service
();
CAN_TX_Init
();
CAN_TX_Count_Init
();
CAN_TX_SetEnable
(
&
CAN_CH0_CanMsgTxOp
,
CAN_N_TX_Enable
);
Data_Vehicle_Speed_KL30_Init
();
Data_Vehicle_Speed_Wakeup_Init
();
Data_Engine_Speed_KL30_Wakeup_Init
();
...
...
@@ -142,11 +170,11 @@ static void Power_Wakeup_Init(void)
TimerM_PWM_CH_Output_init
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
ActiveLevel_High
);
Telltales_Init
();
Telltales_UserInit
();
Data_TPMS_KL15_WAKE_UP_Init
();
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
WAKEUP_KL15_In
,
Trigger_Rising
);
FaultCode_Init
();
Service_Interval_User_WakeupInit
();
CAN_TX_Count_Init
();
}
static
void
Power_LVP_Init
(
void
)
...
...
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