1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Added additional baudrates

This commit is contained in:
Martin Budden 2016-10-13 14:22:57 +01:00
parent 6eb60ad003
commit 31c3f9bb54
2 changed files with 4 additions and 1 deletions

View file

@ -84,7 +84,7 @@ const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = {
static uint8_t serialPortCount; static uint8_t serialPortCount;
const uint32_t baudRates[] = {0, 9600, 19200, 38400, 57600, 115200, 230400, 250000, 500000, 1000000}; // see baudRate_e const uint32_t baudRates[] = {0, 9600, 19200, 38400, 57600, 115200, 230400, 250000, 400000, 460800, 500000, 921600, 1000000}; // see baudRate_e
#define BAUD_RATE_COUNT (sizeof(baudRates) / sizeof(baudRates[0])) #define BAUD_RATE_COUNT (sizeof(baudRates) / sizeof(baudRates[0]))

View file

@ -48,7 +48,10 @@ typedef enum {
BAUD_115200, BAUD_115200,
BAUD_230400, BAUD_230400,
BAUD_250000, BAUD_250000,
BAUD_400000,
BAUD_460800,
BAUD_500000, BAUD_500000,
BAUD_921600,
BAUD_1000000, BAUD_1000000,
} baudRate_e; } baudRate_e;