Asynchronous (Non-blocking) Serial Communication library with variable length software ring buffer (FIFO). You can use RawSerial Library's primary method. Operability confirmed on mbed 2.0.
Dependents: Brute_TS_Controller_2018_11
Diff: AsyncSerial.cpp
- Revision:
- 9:709719dddd3e
- Parent:
- 8:7390f9bb28d3
- Child:
- 10:1baa8e833ac6
- Child:
- 11:690c3439cfd2
diff -r 7390f9bb28d3 -r 709719dddd3e AsyncSerial.cpp --- a/AsyncSerial.cpp Sat Jun 17 11:44:36 2017 +0000 +++ b/AsyncSerial.cpp Fri Jun 23 08:07:17 2017 +0000 @@ -154,7 +154,7 @@ } void AsyncSerial::wait(void){ - while( fifo_rx.available() > 0 ){} + while( fifo_tx.available() > 0 ){} return; }