第一次用扩展帧,已经按例程上的设置过了,但是就是收不到数据,
void Test_NormalMode_Rx(CAN_T *tCAN)
{
CAN_EnableInt(tCAN, CAN_CON_IE_Msk | CAN_CON_SIE_Msk); /* Enable CAN interrupt and corresponding NVIC of CAN */
NVIC_SetPriority(CAN0_IRQn, (1 << __NVIC_PRIO_BITS) - 2); /* Install CAN call back functions */
NVIC_EnableIRQ(CAN0_IRQn);
CAN_SetRxMsg(tCAN, MSG(5), CAN_EXT_ID, 0x10F8109A);
}
|