Constants added
This commit is contained in:
@@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
|
|
||||||
Fifo<uint8_t, 64> btTxFifo;
|
Fifo<uint8_t, BT_TX_FIFO_SIZE> btTxFifo;
|
||||||
Fifo<uint8_t, 128> btRxFifo;
|
Fifo<uint8_t, BT_RX_FIFO_SIZE> btRxFifo;
|
||||||
|
|
||||||
#if defined(PCBX7) || defined(PCBXLITE)
|
#if defined(PCBX7) || defined(PCBXLITE)
|
||||||
volatile uint8_t btChipPresent = 0;
|
volatile uint8_t btChipPresent = 0;
|
||||||
|
|||||||
@@ -609,6 +609,8 @@ void serial2Stop(void);
|
|||||||
#define USART_FLAG_ERRORS (USART_FLAG_ORE | USART_FLAG_NE | USART_FLAG_FE | USART_FLAG_PE)
|
#define USART_FLAG_ERRORS (USART_FLAG_ORE | USART_FLAG_NE | USART_FLAG_FE | USART_FLAG_PE)
|
||||||
|
|
||||||
// BT driver
|
// BT driver
|
||||||
|
#define BT_TX_FIFO_SIZE 64
|
||||||
|
#define BT_RX_FIFO_SIZE 128
|
||||||
#define BLUETOOTH_BOOTLOADER_BAUDRATE 230400
|
#define BLUETOOTH_BOOTLOADER_BAUDRATE 230400
|
||||||
#define BLUETOOTH_FACTORY_BAUDRATE 57600
|
#define BLUETOOTH_FACTORY_BAUDRATE 57600
|
||||||
#define BLUETOOTH_DEFAULT_BAUDRATE 115200
|
#define BLUETOOTH_DEFAULT_BAUDRATE 115200
|
||||||
|
|||||||
@@ -726,6 +726,8 @@ void serial2Stop(void);
|
|||||||
#else
|
#else
|
||||||
#define BLUETOOTH_FACTORY_BAUDRATE 57600
|
#define BLUETOOTH_FACTORY_BAUDRATE 57600
|
||||||
#endif
|
#endif
|
||||||
|
#define BT_TX_FIFO_SIZE 64
|
||||||
|
#define BT_RX_FIFO_SIZE 128
|
||||||
void bluetoothInit(uint32_t baudrate, bool enable);
|
void bluetoothInit(uint32_t baudrate, bool enable);
|
||||||
void bluetoothWriteWakeup(void);
|
void bluetoothWriteWakeup(void);
|
||||||
uint8_t bluetoothIsWriting(void);
|
uint8_t bluetoothIsWriting(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user