Skip to content

Commit

Permalink
fix up lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelus22 committed Nov 28, 2024
1 parent 04fff52 commit 93b5cf8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions drivers/led/apa102.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
8 changes: 4 additions & 4 deletions platforms/avr/drivers/ws2812_bitbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion platforms/chibios/drivers/ws2812_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93b5cf8

Please sign in to comment.