Relocate base WS2812 code (#24850)
This commit is contained in:
parent
2dd2d4eb81
commit
a6e931400e
4 changed files with 6 additions and 1 deletions
|
@ -944,6 +944,8 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
|
|||
|
||||
OPT_DEFS += -DWS2812_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]'))
|
||||
|
||||
COMMON_VPATH += $(DRIVER_PATH)/led
|
||||
|
||||
SRC += ws2812.c ws2812_$(strip $(WS2812_DRIVER)).c
|
||||
|
||||
ifeq ($(strip $(PLATFORM)), CHIBIOS)
|
||||
|
|
|
@ -19,9 +19,12 @@
|
|||
#include "uart.h"
|
||||
#include "print.h"
|
||||
#include "sendchar.h"
|
||||
#include "ws2812.h"
|
||||
#include "sleep_led.h"
|
||||
|
||||
#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812
|
||||
#include "ws2812.h"
|
||||
#endif
|
||||
|
||||
#ifdef UART_DEBUG
|
||||
# undef sendchar
|
||||
static int8_t capture_sendchar(uint8_t c) {
|
||||
|
|
Loading…
Add table
Reference in a new issue