fix: BT defined on T15 (#5445)
This commit is contained in:
@@ -69,7 +69,12 @@ if (PCB STREQUAL X10)
|
|||||||
set(DEFAULT_INTERNAL_MODULE CROSSFIRE CACHE STRING "Default internal module")
|
set(DEFAULT_INTERNAL_MODULE CROSSFIRE CACHE STRING "Default internal module")
|
||||||
option(BLUETOOTH "Support for bluetooth module" OFF)
|
option(BLUETOOTH "Support for bluetooth module" OFF)
|
||||||
option(INTERNAL_GPS "Support for internal NMEA GPS" OFF)
|
option(INTERNAL_GPS "Support for internal NMEA GPS" OFF)
|
||||||
set(AUX_SERIAL ON)
|
if (BLUETOOTH)
|
||||||
|
set(AUX_SERIAL OFF)
|
||||||
|
else()
|
||||||
|
set(AUX_SERIAL ON)
|
||||||
|
endif()
|
||||||
|
# Aux2 is reserved for serial gimbal on this radio
|
||||||
set(AUX2_SERIAL OFF)
|
set(AUX2_SERIAL OFF)
|
||||||
add_definitions(-DMANUFACTURER_JUMPER)
|
add_definitions(-DMANUFACTURER_JUMPER)
|
||||||
set(LCD_DRIVER lcd_st7796s_driver.cpp)
|
set(LCD_DRIVER lcd_st7796s_driver.cpp)
|
||||||
|
|||||||
@@ -1051,14 +1051,22 @@
|
|||||||
// Bluetooth
|
// Bluetooth
|
||||||
#define STORAGE_BLUETOOTH
|
#define STORAGE_BLUETOOTH
|
||||||
#if defined(BLUETOOTH)
|
#if defined(BLUETOOTH)
|
||||||
#define BT_USART USART6
|
#if defined(RADIO_T15)
|
||||||
#define BT_USART_IRQn USART6_IRQn
|
#define BT_USART USART3
|
||||||
#define BT_USART_GPIO GPIOG
|
#define BT_USART_IRQn USART3_IRQn
|
||||||
#define BT_TX_GPIO GPIO_PIN(GPIOG, 14) // PG.14
|
#define BT_USART_GPIO GPIOB
|
||||||
#define BT_RX_GPIO GPIO_PIN(GPIOG, 9) // PG.09
|
#define BT_TX_GPIO GPIO_PIN(GPIOB, 10) // PB.10
|
||||||
#if defined(RADIO_TX16S)
|
#define BT_RX_GPIO GPIO_PIN(GPIOB, 11) // PB.11
|
||||||
#define BT_PWR_GPIO GPIO_PIN(GPIOB, 0) // PB.00
|
#else
|
||||||
#endif
|
#define BT_USART USART6
|
||||||
|
#define BT_USART_IRQn USART6_IRQn
|
||||||
|
#define BT_USART_GPIO GPIOG
|
||||||
|
#define BT_TX_GPIO GPIO_PIN(GPIOG, 14) // PG.14
|
||||||
|
#define BT_RX_GPIO GPIO_PIN(GPIOG, 9) // PG.09
|
||||||
|
#if defined(RADIO_TX16S)
|
||||||
|
#define BT_PWR_GPIO GPIO_PIN(GPIOB, 0) // PB.00
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PCBX12S)
|
#if defined(PCBX12S)
|
||||||
@@ -1071,7 +1079,7 @@
|
|||||||
// #define BT_BRTS_GPIO_PIN GPIO_Pin_10 // PG.10
|
// #define BT_BRTS_GPIO_PIN GPIO_Pin_10 // PG.10
|
||||||
// #define BT_BCTS_GPIO GPIOG
|
// #define BT_BCTS_GPIO GPIOG
|
||||||
// #define BT_BCTS_GPIO_PIN GPIO_Pin_11 // PG.11
|
// #define BT_BCTS_GPIO_PIN GPIO_Pin_11 // PG.11
|
||||||
#elif defined(PCBX10)
|
#elif defined(PCBX10) && !defined(RADIO_T15)
|
||||||
#define BT_EN_GPIO GPIO_PIN(GPIOG, 10) // PG.10
|
#define BT_EN_GPIO GPIO_PIN(GPIOG, 10) // PG.10
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user