Refactoring. CAUTION: ERASE your EEPROM again!
This commit is contained in:
@@ -9,8 +9,6 @@ option(TRACE_AUDIO "Traces audio enabled" OFF)
|
||||
option(DEBUG_TRACE_BUFFER "Debug Trace Screen" OFF)
|
||||
option(MULTIMODULE "DIY Multiprotocol TX Module (https://github.com/pascallanger/DIY-Multiprotocol-TX-Module)" OFF)
|
||||
option(CROSSFIRE "Crossfire TX Module" OFF)
|
||||
option(PXX1 "PXX1 protocol support" OFF)
|
||||
option(PXX2 "PXX2 protocol support" ON)
|
||||
option(SUPPORT_D16_EU_ONLY "XJT module only supports D16-EU and LR12-EU" OFF) # TODO rename to XJT_EU_ONLY
|
||||
option(DEBUG_INTERRUPTS "Count interrupts" OFF)
|
||||
option(DEBUG_USB_INTERRUPTS "Count individual USB interrupts" OFF)
|
||||
@@ -185,7 +183,6 @@ set(PULSES_SRC
|
||||
${PULSES_SRC}
|
||||
pulses.cpp
|
||||
ppm.cpp
|
||||
pxx.cpp
|
||||
dsm2.cpp
|
||||
sbus.cpp
|
||||
)
|
||||
|
||||
@@ -144,6 +144,8 @@ elseif(PCB STREQUAL XLITES)
|
||||
endif()
|
||||
|
||||
if(PCB STREQUAL XLITE OR PCB STREQUAL XLITES OR PCB STREQUAL X3)
|
||||
option(PXX1 "PXX1 protocol support" OFF)
|
||||
option(PXX2 "PXX2 protocol support" ON)
|
||||
add_definitions(-DINTERNAL_MODULE_SERIAL)
|
||||
if(PXX_FREQUENCY STREQUAL HIGH)
|
||||
add_definitions(-DPXX_FREQUENCY_HIGH)
|
||||
@@ -156,6 +158,8 @@ if(PCB STREQUAL XLITE OR PCB STREQUAL XLITES OR PCB STREQUAL X3)
|
||||
../common/arm/stm32/intmodule_serial_driver.cpp
|
||||
)
|
||||
else()
|
||||
set(PXX1 YES)
|
||||
option(PXX2 "PXX2 protocol support" ON)
|
||||
set(TARGET_SRC
|
||||
${TARGET_SRC}
|
||||
intmodule_pulses_driver.cpp
|
||||
|
||||
Reference in New Issue
Block a user