fix: derive SWSERIALPOWER from hardware GPIO capabilities (#7392)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user