feat: allow for compile time user override of power LED color (#5922)

This commit is contained in:
Peter Feerick
2025-02-19 11:32:46 +10:00
committed by GitHub
parent 75d5809164
commit b4bf1eb1ee
6 changed files with 22 additions and 5 deletions
+5
View File
@@ -62,6 +62,7 @@ if(PCB STREQUAL X9D+ AND PCBREV STREQUAL 2019)
else()
option(USBJ_EX "Enable USB Joystick Extension" ON)
endif()
option(POWER_LED_BLUE "Override Power LED to be normally Blue" OFF)
# since we reset all default CMAKE compiler flags for firmware builds, provide an alternate way for user to specify additional flags.
set(FIRMWARE_C_FLAGS "" CACHE STRING "Additional flags for firmware target c compiler (note: all CMAKE_C_FLAGS[_*] are ignored for firmware/bootloader).")
@@ -434,6 +435,10 @@ if(USBJ_EX)
)
endif()
if(POWER_LED_BLUE)
add_definitions(-DPOWER_LED_BLUE)
endif()
foreach(FILE ${TARGET_SRC})
set(SRC targets/${TARGET_DIR}/${FILE} ${SRC})
endforeach()