diff --git a/drivers/led/apa102.c b/drivers/led/apa102.c index 5e777c91fc9e..c10525a6e566 100644 --- a/drivers/led/apa102.c +++ b/drivers/led/apa102.c @@ -53,9 +53,9 @@ io_wait; \ } while (0) -rgb_t apa102_leds[APA102_LED_COUNT]; +rgb_t apa102_leds[APA102_LED_COUNT]; #ifdef APA102_DOUBLE_BUFFER -rgb_t apa102_leds_flush_buffer[APA102_LED_COUNT]; +rgb_t apa102_leds_flush_buffer[APA102_LED_COUNT]; #endif uint8_t apa102_led_brightness = APA102_DEFAULT_BRIGHTNESS; diff --git a/platforms/avr/drivers/ws2812_bitbang.c b/platforms/avr/drivers/ws2812_bitbang.c index 3c546aa57115..8d44e59a8e20 100644 --- a/platforms/avr/drivers/ws2812_bitbang.c +++ b/platforms/avr/drivers/ws2812_bitbang.c @@ -26,7 +26,7 @@ #include "ws2812.h" #include "pin_defs.h" -#define pinmask(pin) (_BV((pin) & 0xF)) +#define pinmask(pin) (_BV((pin)&0xF)) /* This routine writes an array of bytes with RGB values to the Dataout pin @@ -105,7 +105,7 @@ static inline void ws2812_sendarray_mask(uint8_t *data, uint16_t datlen, uint8_t w_nop8 #endif #if (w1_nops & 16) - w_nop16 + w_nop16 #endif " sbrs %1,7 \n\t" // '1' [03] '0' [02] " out %2,%4 \n\t" // '1' [--] '0' [03] - fe-low @@ -123,7 +123,7 @@ static inline void ws2812_sendarray_mask(uint8_t *data, uint16_t datlen, uint8_t w_nop8 #endif #if (w2_nops & 16) - w_nop16 + w_nop16 #endif " out %2,%4 \n\t" // '1' [+1] '0' [+1] - fe-high #if (w3_nops & 1) @@ -139,7 +139,7 @@ static inline void ws2812_sendarray_mask(uint8_t *data, uint16_t datlen, uint8_t w_nop8 #endif #if (w3_nops & 16) - w_nop16 + w_nop16 #endif " dec %0 \n\t" // '1' [+2] '0' [+2] diff --git a/platforms/chibios/drivers/ws2812_spi.c b/platforms/chibios/drivers/ws2812_spi.c index 95fa76807085..6e051d7b7121 100644 --- a/platforms/chibios/drivers/ws2812_spi.c +++ b/platforms/chibios/drivers/ws2812_spi.c @@ -191,7 +191,8 @@ void ws2812_init(void) { 0, WS2812_SPI_DIVISOR # else - WS2812_SPI_DIVISOR_CR1_BR_X, 0 + WS2812_SPI_DIVISOR_CR1_BR_X, + 0 # endif #else // HAL_SPI_V2