feat(radio): support faster RGB led timings on compatible hardware (#7144)
This commit is contained in:
@@ -66,7 +66,7 @@ add_definitions(
|
||||
-DSTM32H750ZBTx -DSTM32H750xx
|
||||
-DSDRAM -DCCMRAM
|
||||
-DHARDWARE_KEYS -DSOFTWARE_KEYBOARD
|
||||
-DWS2812_MAX_LEDS=24
|
||||
-DRGBLEDS_MAX_LEDS=24
|
||||
)
|
||||
|
||||
set(SDRAM ON)
|
||||
@@ -93,6 +93,7 @@ if(FUNCTION_SWITCHES_WITH_RGB)
|
||||
set(FUNCTION_SWITCHES YES)
|
||||
add_definitions(-DFUNCTION_SWITCHES)
|
||||
add_definitions(-DFUNCTION_SWITCHES_RGB_LEDS)
|
||||
add_definitions(-DRGB_LEDS_900NS)
|
||||
endif()
|
||||
|
||||
if(FUNCTION_SWITCHES)
|
||||
@@ -153,7 +154,7 @@ add_library(board OBJECT EXCLUDE_FROM_ALL
|
||||
targets/common/arm/stm32/stm32_softserial_driver.cpp
|
||||
targets/common/arm/stm32/stm32_qspi.cpp
|
||||
targets/common/arm/stm32/stm32_switch_driver.cpp
|
||||
targets/common/arm/stm32/stm32_ws2812.cpp
|
||||
targets/common/arm/stm32/stm32_rgbleds.cpp
|
||||
targets/common/arm/stm32/trainer_driver.cpp
|
||||
)
|
||||
add_dependencies(board board_lib)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "stm32_gpio.h"
|
||||
#include "stm32_i2c_driver.h"
|
||||
#include "stm32_hal.h"
|
||||
#include "stm32_ws2812.h"
|
||||
#include "stm32_rgbleds.h"
|
||||
#include "stm32_spi.h"
|
||||
|
||||
#include "flash_driver.h"
|
||||
|
||||
Reference in New Issue
Block a user