while (CAN->MSR & CAN_MCR_INRQ);死在那了
- UID
- 863306
|
while (CAN->MSR & CAN_MCR_INRQ);死在那了
while (CAN->MSR & CAN_MCR_INRQ);死在那了??void, normal, 程序
void CAN_start (void) {
CAN->MCR &= ~CAN_MCR_INRQ; // normal operating mode, reset INRQ
while (CAN->MSR & CAN_MCR_INRQ);
}
同样的CAN初始化程序 在STM32f103CB上没问题 在STM32f103VC上就死在while (CAN->MSR & CAN_MCR_INRQ);这句了 |
|
|
|
|
|
|