Commit 324d2a83 authored by 陈家乐's avatar 陈家乐

🐞 fix:代码评审问题:CAN矩阵相关统一初始化

parent a4a1919b
......@@ -12,6 +12,7 @@ static RSCAN0BusoffMonitorStruct RSCAN0Busoff;
void Can_Init(void)
{
CAN_TX_Count_Init();
can_config_st_t Can_Config;
Can_Config.ch = CAN_CH_0;
Can_Config.freq = CAN_500Kbps;
......@@ -262,7 +263,7 @@ void CAN_TX_Init(void)
CAN_CH0_CanMsgTxOp.Can_Write = COM_APP_Process;
CAN_CH0_CanMsgTxOp.u8CAN_TX_ENABLE = CAN_N_TX_Disable;
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);
CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Enable);
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment