Commit b6d84fdc authored by Vowstar's avatar Vowstar
Browse files

Merge pull request #170 from cle69/cle69-patch-1

Cle69 patch 1
parents 513c46b4 4c785fc9
...@@ -33,6 +33,9 @@ typedef enum { ...@@ -33,6 +33,9 @@ typedef enum {
} UartExistParity; } UartExistParity;
typedef enum { typedef enum {
BIT_RATE_9600 = 1200,
BIT_RATE_9600 = 2400,
BIT_RATE_4800 = 4800,
BIT_RATE_9600 = 9600, BIT_RATE_9600 = 9600,
BIT_RATE_19200 = 19200, BIT_RATE_19200 = 19200,
BIT_RATE_38400 = 38400, BIT_RATE_38400 = 38400,
......
...@@ -185,6 +185,9 @@ uint32_t platform_uart_setup( unsigned id, uint32_t baud, int databits, int pari ...@@ -185,6 +185,9 @@ uint32_t platform_uart_setup( unsigned id, uint32_t baud, int databits, int pari
{ {
switch( baud ) switch( baud )
{ {
case BIT_RATE_1200:
case BIT_RATE_2400:
case BIT_RATE_4800:
case BIT_RATE_9600: case BIT_RATE_9600:
case BIT_RATE_19200: case BIT_RATE_19200:
case BIT_RATE_38400: case BIT_RATE_38400:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment