TC397的MCMCAN的配置实践代码
笔者使用TC397 MCAMCAN模块1的节点0,节点1,节点2 和 模块0的节点2
一、McmcanM1N0_Init
/*--------------------------------------------------------------- IfxCan_NodeId_0/1/2/3 */
mmWaveRd1st_Can_STC.canNodeConfig.nodeId = IfxCan_NodeId_0;
/*------------------------------------ IfxCan_ClockSource_asynchronous/synchronous/both */
mmWaveRd1st_Can_STC.canNodeConfig.clockSource = IfxCan_ClockSource_both;
/*----- IfxCan_FrameType_transmitAndReceive/receive/transmit/remoteRequest/remoteAnswer */
mmWaveRd1st_Can_STC.canNodeConfig.frame.type = IfxCan_FrameType_transmitAndReceive;
/*-------------------------------------- IfxCan_FrameMode_standard/fdL