54 | #define TIM1_IRQn TIM1_UP_TIM10_IRQn | ^~~~ C:\Users\user\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0\libraries\SrcWrapper\src\stm32\timer.c:374:16: note: in expansion of macro 'TIM1_IRQn' 374 | IRQn = TIM1_IRQn; | ^~~~ C:\Users\user\AppData\Local...
关于“NVIC_InitStructure.NVIC_IRQChannel = TIM1_IRQn; /提示T1M1_IRQN,没有定义,”问题的解决。 在程序设计过程中,需要用到定时器的捕获功能,基于单片机资源的限制,采用了TIM1作为实现捕获功能的定时器;在初始化TIM1的NVIC中断程序时,当时参考TIM3的代码进行了设置,结果出现了问题(TIM3没有提示错误信息,T......
#if !defined (TIM10_BASE) #define TIM1_IRQn TIM1_UP_IRQn #define TIM1_IRQHandler TIM1_UP_IRQHandler #else #define TIM1_IRQn TIM1_UP_TIM10_IRQn #define TIM1_IRQHandler TIM1_UP_TIM10_IRQHandler #endif #elif defined(STM32H7xx) || defined(STM32MP1xx) #define TIM1_IRQn TIM1_UP_...
NVIC_InitStructure.NVIC_IRQChannel = TIM1_UP_IRQn;