LED clock
 All Files Functions Variables Macros Groups Pages
Macros
timer peripheral used to generate SPI clock

Macros

#define WS2812B_TIMER   TIM3
 
#define WS2812B_TIMER_RCC   RCC_TIM3
 
#define WS2812B_TIMER_OC   TIM_OC3
 
#define WS2812B_CLK_RCC   RCC_GPIOB
 
#define WS2812B_CLK_PORT   GPIOB
 
#define WS2812B_CLK_PIN   GPIO_TIM3_CH3
 

Detailed Description

Macro Definition Documentation

#define WS2812B_CLK_PIN   GPIO_TIM3_CH3

timer pin to output PWM (PB0), connect to SPI clock input

Definition at line 57 of file led_ws2812b.c.

#define WS2812B_CLK_PORT   GPIOB

timer port

Definition at line 56 of file led_ws2812b.c.

#define WS2812B_CLK_RCC   RCC_GPIOB

timer port peripheral clock

Definition at line 55 of file led_ws2812b.c.

#define WS2812B_TIMER   TIM3

timer peripheral

Definition at line 52 of file led_ws2812b.c.

#define WS2812B_TIMER_OC   TIM_OC3

timer output compare used to set PWM frequency

Definition at line 54 of file led_ws2812b.c.

#define WS2812B_TIMER_RCC   RCC_TIM3

timer peripheral clock

Definition at line 53 of file led_ws2812b.c.