Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
44ca2ee9
Commit
44ca2ee9
authored
Nov 19, 2018
by
Bert Melis
Committed by
Me No Dev
Nov 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix uart TX flushing (#2029)
wait for FSM to return idle
parent
af79e18e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cores/esp32/esp32-hal-uart.c
cores/esp32/esp32-hal-uart.c
+1
-1
No files found.
cores/esp32/esp32-hal-uart.c
View file @
44ca2ee9
...
@@ -333,7 +333,7 @@ void uartFlush(uart_t* uart)
...
@@ -333,7 +333,7 @@ void uartFlush(uart_t* uart)
}
}
UART_MUTEX_LOCK
();
UART_MUTEX_LOCK
();
while
(
uart
->
dev
->
status
.
txfifo_cnt
);
while
(
uart
->
dev
->
status
.
txfifo_cnt
||
uart
->
dev
->
status
.
st_utx_out
);
//Due to hardware issue, we can not use fifo_rst to reset uart fifo.
//Due to hardware issue, we can not use fifo_rst to reset uart fifo.
//See description about UART_TXFIFO_RST and UART_RXFIFO_RST in <<esp32_technical_reference_manual>> v2.6 or later.
//See description about UART_TXFIFO_RST and UART_RXFIFO_RST in <<esp32_technical_reference_manual>> v2.6 or later.
...
...
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