STM32:利用定时器中断实现4路LED不同频率闪烁
基于STM32定时器中断实现4路LED不同频率闪烁的代码
我整理了你编写的这段代码,用Markdown格式化后呈现如下:
/*********** Includes ****************/ #include "stm32f4xx.h" #include "stm32f4_discovery.h" /*********** Defines *****************/ #define TIM3_CK_CNT 50000 /*********** Declarations *************/ /*------ Function prototypes ---------*/ void TimerConfiguration(void); /* ----- Global variables ----------- */ volatile uint16_t CCR1_Val = 50000; volatile uint16_t CCR2_Val = 40000; volatile uint...
内容的提问来源于stack exchange,提问作者Rick
相关产品推荐
相关产品推荐

