feat(TX16S): User options for AUX1/AUX2 serial port power (ON/OFF)

User controllable serial port power for TX16S
This commit is contained in:
Peter Feerick
2022-04-24 11:53:31 +10:00
committed by GitHub
45 changed files with 206 additions and 88 deletions
@@ -219,6 +219,17 @@ int main()
pwrInit();
keysInit();
#if defined(SWSERIALPOWER)
#if defined(AUX_SERIAL)
void set_aux_pwr(uint8_t on);
set_aux_pwr(0);
#endif
#if defined(AUX2_SERIAL)
void set_aux2_pwr(uint8_t on);
set_aux2_pwr(0);
#endif
#endif
// wait a bit for the inputs to stabilize...
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
for (uint32_t i = 0; i < 150000; i++) {
+5
View File
@@ -99,6 +99,7 @@ if (PCB STREQUAL X10)
option(BLUETOOTH "Support for bluetooth module" OFF)
option(INTERNAL_GPS "Support for internal ublox GPS" ON)
set(HARDWARE_TOUCH YES)
set(SWSERIALPOWER YES)
set(USB_CHARGER YES)
set(DEFAULT_THEME "DARKBLUE")
add_definitions(-DMANUFACTURER_RADIOMASTER)
@@ -233,6 +234,10 @@ if(HARDWARE_TOUCH)
set(SOFTWARE_KEYBOARD ON)
endif()
if(SWSERIALPOWER)
add_definitions(-DSWSERIALPOWER)
endif()
if(USB_CHARGER)
set(FIRMWARE_TARGET_SRC ${FIRMWARE_TARGET_SRC} usb_charger_driver.cpp)
add_definitions(-DUSB_CHARGER)