fix: derive SWSERIALPOWER from hardware GPIO capabilities (#7392)

This commit is contained in:
3djc
2026-06-04 13:46:04 +10:00
committed by GitHub
parent 1d4c723c9d
commit 9e1afdfb58
2 changed files with 4 additions and 6 deletions
+4
View File
@@ -23,6 +23,10 @@
#include "serial_driver.h"
#if defined(AUX_SERIAL_PWR_GPIO) || defined(AUX2_SERIAL_PWR_GPIO)
#define SWSERIALPOWER
#endif
typedef struct {
const char* name;
const etx_serial_driver_t* uart;
-6
View File
@@ -91,7 +91,6 @@ if (PCB STREQUAL X10)
set(DEFAULT_INTERNAL_MODULE MULTIMODULE CACHE STRING "Default internal module")
option(BLUETOOTH "Support for bluetooth module" OFF)
set(SWSERIALPOWER YES)
set(USB_CHARGER YES)
add_definitions(-DMANUFACTURER_RADIOMASTER)
if (NOT BLUETOOTH)
@@ -112,7 +111,6 @@ if (PCB STREQUAL X10)
add_definitions(-DRADIO_FAMILY_T16)
set(DEFAULT_INTERNAL_MODULE CROSSFIRE CACHE STRING "Default internal module")
option(BLUETOOTH "Support for bluetooth module" OFF)
set(SWSERIALPOWER YES)
add_definitions(-DMANUFACTURER_HELLORADIOSKY)
set(FLEXSW "2" CACHE STRING "Max flex inputs usable as switches")
set(AUX2_SERIAL OFF)
@@ -322,10 +320,6 @@ if(USE_ADS79xx)
target_sources(board PRIVATE targets/common/arm/stm32/ads79xx.cpp)
endif()
if(SWSERIALPOWER)
add_definitions(-DSWSERIALPOWER)
endif()
if(USB_CHARGE_LED)
add_definitions(-DUSB_CHARGE_LED)
endif()