Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
19471f54
Commit
19471f54
authored
Feb 15, 2016
by
Terry Ellison
Browse files
Merge pull request #1056 from devsaurus/uart_baud
Enable UART baudrate 256000 in platform layer.
parents
e8c89fac
c88f0bd3
Changes
2
Show whitespace changes
Inline
Side-by-side
app/platform/platform.c
View file @
19471f54
...
...
@@ -195,6 +195,7 @@ 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
:
...
...
docs/en/modules/uart.md
View file @
19471f54
...
...
@@ -67,7 +67,7 @@ end, 0)
#### Parameters
-
`id`
always zero, only one uart supported
-
`baud`
one of 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400, 460800, 921600, 1843200,
2
686400
-
`baud`
one of 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 74880, 115200, 230400,
256000,
460800, 921600, 1843200,
3
686400
-
`databits`
one of 5, 6, 7, 8
-
`parity`
`uart.PARITY_NONE`
,
`uart.PARITY_ODD`
, or
`uart.PARITY_EVEN`
-
`stopbits`
`uart.STOPBITS_1`
,
`uart.STOPBITS_1_5`
, or
`uart.STOPBITS_2`
...
...
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