diff --git a/app/include/driver/uart.h b/app/include/driver/uart.h index c2c8001d..3dd3df6b 100644 --- a/app/include/driver/uart.h +++ b/app/include/driver/uart.h @@ -33,6 +33,9 @@ typedef enum { } UartExistParity; typedef enum { + BIT_RATE_9600 = 1200, + BIT_RATE_9600 = 2400, + BIT_RATE_4800 = 4800, BIT_RATE_9600 = 9600, BIT_RATE_19200 = 19200, BIT_RATE_38400 = 38400, diff --git a/app/platform/platform.c b/app/platform/platform.c index 8480a3bb..3c247c4b 100644 --- a/app/platform/platform.c +++ b/app/platform/platform.c @@ -185,6 +185,9 @@ uint32_t platform_uart_setup( unsigned id, uint32_t baud, int databits, int pari { switch( baud ) { + case BIT_RATE_1200: + case BIT_RATE_2400: + case BIT_RATE_4800: case BIT_RATE_9600: case BIT_RATE_19200: case BIT_RATE_38400: