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

Cle69 patch 1
This commit is contained in:
Vowstar 2015-02-04 00:44:49 +08:00
commit b6d84fdc2f
2 changed files with 6 additions and 0 deletions

View File

@ -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,

View File

@ -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: