Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d2cdba25
Commit
d2cdba25
authored
Feb 11, 2015
by
HuangRui
Browse files
Supported more baudrate.
parent
5d9caf23
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/platform/platform.c
View file @
d2cdba25
...
...
@@ -185,6 +185,8 @@ uint32_t platform_uart_setup( unsigned id, uint32_t baud, int databits, int pari
{
switch
(
baud
)
{
case
BIT_RATE_300
:
case
BIT_RATE_600
:
case
BIT_RATE_1200
:
case
BIT_RATE_2400
:
case
BIT_RATE_4800
:
...
...
@@ -195,8 +197,11 @@ uint32_t platform_uart_setup( unsigned id, uint32_t baud, int databits, int pari
case
BIT_RATE_74880
:
case
BIT_RATE_115200
:
case
BIT_RATE_230400
:
case
BIT_RATE_256000
:
case
BIT_RATE_460800
:
case
BIT_RATE_921600
:
case
BIT_RATE_1843200
:
case
BIT_RATE_3686400
:
UartDev
.
baut_rate
=
baud
;
break
;
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment