From d48168b920065e031d28b38e41cc4fe1cca55473 Mon Sep 17 00:00:00 2001 From: cle69 Date: Tue, 3 Feb 2015 09:26:21 +0100 Subject: [PATCH 1/2] Update uart.h Add Baudrate 1200, 2400,4800 --- app/include/driver/uart.h | 3 +++ 1 file changed, 3 insertions(+) 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, From 4c785fc97966c49c2c75a4f70833ecaa5507c2a8 Mon Sep 17 00:00:00 2001 From: cle69 Date: Tue, 3 Feb 2015 10:18:58 +0100 Subject: [PATCH 2/2] Update platform.c Add Bit Rate 1200,2400,4800 --- app/platform/platform.c | 3 +++ 1 file changed, 3 insertions(+) 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: