@@ -281,6 +281,10 @@ elseif(PCB STREQUAL XLITES)
|
||||
set(INTERNAL_MODULE_SERIAL YES)
|
||||
endif()
|
||||
|
||||
if(NOT PCB STREQUAL PCBXLITE)
|
||||
add_definitions(-DHARDWARE_TRAINER_JACK)
|
||||
endif()
|
||||
|
||||
if(GYRO)
|
||||
add_definitions(-DGYRO)
|
||||
set(TARGET_SRC
|
||||
@@ -326,6 +330,10 @@ if(BLUETOOTH)
|
||||
${SRC}
|
||||
bluetooth.cpp
|
||||
)
|
||||
if(NOT PCB STREQUAL X9E)
|
||||
# Bluetooth on X9E is compatible with almost nothing
|
||||
add_definitions(-DHARDWARE_TRAINER_BLUETOOTH)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(AUTOUPDATE)
|
||||
|
||||
@@ -1233,6 +1233,7 @@
|
||||
#endif
|
||||
|
||||
// Trainer Port
|
||||
#define HARDWARE_TRAINER_EXTERNAL_MODULE
|
||||
#if defined(PCBXLITES) || defined(PCBX9LITE)
|
||||
// on these 2 radios the trainer port already uses DMA1_Stream6, we won't use the DMA
|
||||
#define TRAINER_RCC_AHB1Periph RCC_AHB1Periph_GPIOD
|
||||
@@ -1311,7 +1312,7 @@
|
||||
#define AUX_SERIAL_RCC_APB1Periph 0
|
||||
#define AUX_SERIAL_RCC_APB2Periph 0
|
||||
#else
|
||||
#define TRAINER_BATTERY_COMPARTMENT
|
||||
#define HARDWARE_TRAINER_AUX_SERIAL
|
||||
#define AUX_SERIAL_RCC_AHB1Periph (RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_DMA1)
|
||||
#define AUX_SERIAL_RCC_APB1Periph RCC_APB1Periph_USART3
|
||||
#define AUX_SERIAL_RCC_APB2Periph 0
|
||||
|
||||
Reference in New Issue
Block a user