commit
b6d84fdc2f
|
@ -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
|
||||||
{
|
{
|
||||||
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:
|
||||||
|
|
Loading…
Reference in New Issue