Bluetooth driver added to Horus, BT_EN_GPIO_PIN was wrong on beta board (#4005)

CLI interface for Bluetooth
This commit is contained in:
Damjan Adamic
2016-11-11 19:56:36 +01:00
committed by Bertrand Songis
parent 5869b81e9c
commit 7b2d8b1f0a
10 changed files with 330 additions and 10 deletions
+11
View File
@@ -431,6 +431,17 @@ void serial2Stop(void);
#define USART_FLAG_ERRORS (USART_FLAG_ORE | USART_FLAG_NE | USART_FLAG_FE | USART_FLAG_PE)
int sbusGetByte(uint8_t * byte);
// BT driver
#define BLUETOOTH_DEFAULT_BAUDRATE 115200
#define BLUETOOTH_FACTORY_BAUDRATE 9600
uint8_t bluetoothReady(void);
void bluetoothInit(uint32_t baudrate);
void bluetoothWrite(const void * buffer, int len);
void bluetoothWriteString(const char * str);
int bluetoothRead(void * buffer, int len);
void bluetoothWakeup(void);
void bluetoothDone(void);
#if defined(USB_JOYSTICK) && !defined(SIMU)
void usbJoystickUpdate(void);
#endif