feat(tx15): support BT and serial gimbal (#6628)
This commit is contained in:
@@ -7,6 +7,8 @@ option(GHOST "Ghost TX Module" ON)
|
||||
option(MODULE_SIZE_STD "Standard size TX Module" ON)
|
||||
option(LUA_MIXER "Enable LUA mixer/model scripts support" ON)
|
||||
option(DISK_CACHE "Enable SD card disk cache" ON)
|
||||
option(BLUETOOTH "FrSky BT module support" OFF)
|
||||
option(FLYSKY_GIMBAL "Serial gimbal support" ON)
|
||||
|
||||
set(FIRMWARE_QSPI YES)
|
||||
set(FIRMWARE_FORMAT_UF2 YES)
|
||||
@@ -27,6 +29,11 @@ set(INTERNAL_MODULE_AFHDS3 NO)
|
||||
set(ROTARY_ENCODER YES)
|
||||
set(FUNCTION_SWITCHES_WITH_RGB YES)
|
||||
|
||||
# BT and serial gimbal share same UART
|
||||
if(BLUETOOTH)
|
||||
set(FLYSKY_GIMBAL OFF)
|
||||
endif()
|
||||
|
||||
#option(STICKS_DEAD_ZONE "Enable sticks dead zone" YES)
|
||||
|
||||
# IMU support
|
||||
@@ -138,6 +145,12 @@ set(BOARD_COMMON_SRC
|
||||
drivers/pca95xx.cpp
|
||||
)
|
||||
|
||||
if(BLUETOOTH)
|
||||
set(BOARD_COMMON_SRC ${BOARD_COMMON_SRC}
|
||||
targets/common/arm/stm32/bluetooth_driver.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
# Bootloader board library
|
||||
add_library(board_bl OBJECT EXCLUDE_FROM_ALL
|
||||
${BOARD_COMMON_SRC}
|
||||
|
||||
Reference in New Issue
Block a user