嵌入式STM32学习—— 定时器中断(应用-利用定时器中断实现LED亮一秒灭一秒)
利用定时器中断实现LED亮一秒灭一秒 time.h #ifndef TIM_H_ #define TIM_H_void TIM_TimeBase_init(void);#endiftime.c #include "stm32f10x.h" #include "time.h"void TIM_TimeBase_init(void) {TIM_TimeBaseInitTypeDef TIM_TimeBase_initstruct;NVI…
2026-02-02