STM32如何确定执行哪个中断函数
2024-10-18 来源:cnblogs
如下面所示:
NVIC_InitStructure.NVIC_IRQChannel = EXTI0_IRQn; //NRF24L01 中断响应
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0; //抢占优先级 0
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1; //子优先级为1
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //使能
NVIC_Init(&NVIC_InitStructure);
则对应的中断函数就是
STM3210x_it.c
void EXTI0_IRQHandler(void)
上一篇:STM32下uIP移植问题
下一篇:STM32固件库
相关文章