|
1240 | 1240 | // Bluetooth
|
1241 | 1241 | #define STORAGE_BLUETOOTH
|
1242 | 1242 | #if defined(BLUETOOTH)
|
1243 |
| -#define BT_RCC_APB2Periph RCC_APB2Periph_USART6 |
1244 |
| -#define BT_USART USART6 |
1245 |
| -#define BT_GPIO_AF LL_GPIO_AF_8 |
1246 |
| -#define BT_USART_IRQn USART6_IRQn |
1247 |
| -#define BT_USART_GPIO GPIOG |
1248 |
| -#define BT_TX_GPIO_PIN LL_GPIO_PIN_14 // PG.14 |
1249 |
| -#define BT_RX_GPIO_PIN LL_GPIO_PIN_9 // PG.09 |
1250 |
| -#define BT_USART_IRQHandler USART6_IRQHandler |
1251 |
| -#if defined(RADIO_TX16S) |
1252 |
| - #define BT_PWR_GPIO GPIOB |
1253 |
| - #define BT_PWR_GPIO_PIN LL_GPIO_PIN_0 // PB.00 |
1254 |
| -#endif |
| 1243 | + #if defined(RADIO_T15) |
| 1244 | + #define BT_RCC_APB1Periph RCC_APB1Periph_USART3 |
| 1245 | + #define BT_RCC_APB2Periph 0 |
| 1246 | + #define BT_USART USART3 |
| 1247 | + #define BT_USART_IRQn USART3_IRQn |
| 1248 | + #define BT_USART_GPIO GPIOB |
| 1249 | + #define BT_TX_GPIO_PIN LL_GPIO_PIN_10 // PB.10 |
| 1250 | + #define BT_RX_GPIO_PIN LL_GPIO_PIN_11 // PB.11 |
| 1251 | + #define BT_USART_IRQHandler USART3_IRQHandler |
| 1252 | + #else |
| 1253 | + #define BT_RCC_APB1Periph 0 |
| 1254 | + #define BT_RCC_APB2Periph RCC_APB2Periph_USART6 |
| 1255 | + #define BT_USART USART6 |
| 1256 | + #define BT_GPIO_AF LL_GPIO_AF_8 |
| 1257 | + #define BT_USART_IRQn USART6_IRQn |
| 1258 | + #define BT_USART_GPIO GPIOG |
| 1259 | + #define BT_TX_GPIO_PIN LL_GPIO_PIN_14 // PG.14 |
| 1260 | + #define BT_RX_GPIO_PIN LL_GPIO_PIN_9 // PG.09 |
| 1261 | + #define BT_USART_IRQHandler USART6_IRQHandler |
| 1262 | + #if defined(RADIO_TX16S) |
| 1263 | + #define BT_PWR_GPIO GPIOB |
| 1264 | + #define BT_PWR_GPIO_PIN LL_GPIO_PIN_0 // PB.00 |
| 1265 | + #endif |
| 1266 | + #endif |
1255 | 1267 | #else
|
1256 |
| -#define BT_RCC_APB2Periph 0 |
| 1268 | + #define BT_RCC_APB1Periph 0 |
| 1269 | + #define BT_RCC_APB2Periph 0 |
1257 | 1270 | #endif
|
| 1271 | + |
1258 | 1272 | #if defined(PCBX12S)
|
1259 | 1273 | #if PCBREV >= 13
|
1260 | 1274 | #define BT_RCC_AHB1Periph (RCC_AHB1Periph_GPIOI | RCC_AHB1Periph_GPIOG)
|
|
1271 | 1285 | // #define BT_BCTS_GPIO_PIN GPIO_Pin_11 // PG.11
|
1272 | 1286 | #elif defined(PCBX10)
|
1273 | 1287 | #define BT_RCC_AHB1Periph RCC_AHB1Periph_GPIOG
|
1274 |
| - #define BT_EN_GPIO GPIOG |
1275 |
| - #define BT_EN_GPIO_PIN LL_GPIO_PIN_10 // PG.10 |
| 1288 | + #if !defined(RADIO_T15) |
| 1289 | + #define BT_EN_GPIO GPIOG |
| 1290 | + #define BT_EN_GPIO_PIN LL_GPIO_PIN_10 // PG.10 |
| 1291 | + #endif |
1276 | 1292 | #endif
|
1277 | 1293 |
|
1278 | 1294 | // Video switch
|
|
0 commit comments