NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn; //在__STM32F10x_H 中定义
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
现在已经确定是NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn;导致的,换成别的中断是没问题的,STM32_F10X.H中即便不写中断函数仍然卡在这里, |