Only for F446RE & L432KC. Use CircularBuffer.Change Callback method.
Dependents: Test_SoftSerial_for_L432KC Test_SoftSerial
Revision 12:7ab9ab7210e7, committed 2020-05-12
- Comitter:
- kenjiArai
- Date:
- Tue May 12 05:28:37 2020 +0000
- Parent:
- 11:f186cc69acdf
- Commit message:
- change buffer size
Changed in this revision
diff -r f186cc69acdf -r 7ab9ab7210e7 BufferedSoftSerial.cpp --- a/BufferedSoftSerial.cpp Sun May 10 08:10:29 2020 +0000 +++ b/BufferedSoftSerial.cpp Tue May 12 05:28:37 2020 +0000 @@ -21,7 +21,7 @@ * limitations under the License. */ -// Modified by K.Arai / JH1PJL May 10th, 2020 +// Modified by K.Arai / JH1PJL May 12th, 2020 #include "BufferedSoftSerial.h" #include <stdarg.h>
diff -r f186cc69acdf -r 7ab9ab7210e7 BufferedSoftSerial.h --- a/BufferedSoftSerial.h Sun May 10 08:10:29 2020 +0000 +++ b/BufferedSoftSerial.h Tue May 12 05:28:37 2020 +0000 @@ -26,7 +26,7 @@ Original Library by Erik- https://os.mbed.com/users/Sissors/code/BufferedSoftSerial/ - Modified by K.Arai / JH1PJL May 9th, 2020 + Modified by K.Arai / JH1PJL May 12th, 2020 modified parts use CircularBuffer (mbed standard library) @@ -90,8 +90,8 @@ class BufferedSoftSerial : public SoftSerial { private: - CircularBuffer<char, 1024> _rxbuf; - CircularBuffer<char, 1024> _txbuf; + CircularBuffer<char, 256> _rxbuf; + CircularBuffer<char, 256> _txbuf; void rx_Irq(void); void tx_Irq(void);
diff -r f186cc69acdf -r 7ab9ab7210e7 SoftSerial.lib --- a/SoftSerial.lib Sun May 10 08:10:29 2020 +0000 +++ b/SoftSerial.lib Tue May 12 05:28:37 2020 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/kenjiArai/code/SoftSerial/#cd58d03b8559 +https://os.mbed.com/users/kenjiArai/code/SoftSerial/#6399b30798a5