mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-05-07 11:59:00 +00:00
Relocate base WS2812 code (#24850)
This commit is contained in:
@@ -944,6 +944,8 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
|
|||||||
|
|
||||||
OPT_DEFS += -DWS2812_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]'))
|
OPT_DEFS += -DWS2812_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]'))
|
||||||
|
|
||||||
|
COMMON_VPATH += $(DRIVER_PATH)/led
|
||||||
|
|
||||||
SRC += ws2812.c ws2812_$(strip $(WS2812_DRIVER)).c
|
SRC += ws2812.c ws2812_$(strip $(WS2812_DRIVER)).c
|
||||||
|
|
||||||
ifeq ($(strip $(PLATFORM)), CHIBIOS)
|
ifeq ($(strip $(PLATFORM)), CHIBIOS)
|
||||||
|
|||||||
@@ -19,9 +19,12 @@
|
|||||||
#include "uart.h"
|
#include "uart.h"
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
#include "sendchar.h"
|
#include "sendchar.h"
|
||||||
#include "ws2812.h"
|
|
||||||
#include "sleep_led.h"
|
#include "sleep_led.h"
|
||||||
|
|
||||||
|
#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812
|
||||||
|
#include "ws2812.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef UART_DEBUG
|
#ifdef UART_DEBUG
|
||||||
# undef sendchar
|
# undef sendchar
|
||||||
static int8_t capture_sendchar(uint8_t c) {
|
static int8_t capture_sendchar(uint8_t c) {
|
||||||
|
|||||||
Reference in New Issue
Block a user