四轴飞控
Dependents: withbufferserial_nrftst fly_v1
Fork of BufferedSerial by
Revision 13:19fd7170f21e, committed 2017-12-10
- Comitter:
- accelerator225
- Date:
- Sun Dec 10 02:16:33 2017 +0000
- Parent:
- 12:a0d37088b405
- Commit message:
- baudrate 115200
Changed in this revision
BufferedSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a0d37088b405 -r 19fd7170f21e BufferedSerial.cpp --- a/BufferedSerial.cpp Mon Mar 07 21:10:27 2016 +0000 +++ b/BufferedSerial.cpp Sun Dec 10 02:16:33 2017 +0000 @@ -24,7 +24,7 @@ #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)) + : RawSerial(tx, rx, 115200) , _rxbuf(buf_size), _txbuf((uint32_t)(tx_multiple*buf_size)) { RawSerial::attach(this, &BufferedSerial::rxIrq, Serial::RxIrq); this->_buf_size = buf_size;