Changes added to reflect changes in MyBuffer which was modified to use static memory allocation.
Fork of BufferedSerialStatic by
Diff: BufferedSerial.cpp
- Revision:
- 13:423989861689
- Parent:
- 11:779304f9c5d2
- Child:
- 14:60e0d42781f9
diff -r a0d37088b405 -r 423989861689 BufferedSerial.cpp --- a/BufferedSerial.cpp Mon Mar 07 21:10:27 2016 +0000 +++ b/BufferedSerial.cpp Mon May 28 14:44:46 2018 +0000 @@ -23,12 +23,11 @@ #include "BufferedSerial.h" #include <stdarg.h> -BufferedSerial::BufferedSerial(PinName tx, PinName rx, uint32_t buf_size, uint32_t tx_multiple, const char* name) - : RawSerial(tx, rx) , _rxbuf(buf_size), _txbuf((uint32_t)(tx_multiple*buf_size)) +BufferedSerial::BufferedSerial(PinName tx, PinName rx, const char* name) + : RawSerial(tx, rx) , _rxbuf(), _txbuf()) { RawSerial::attach(this, &BufferedSerial::rxIrq, Serial::RxIrq); - this->_buf_size = buf_size; - this->_tx_multiple = tx_multiple; + this->_buf_size = 256; return; }