123
Diff: BufferedSerial.h
- Revision:
- 15:8bcd2a38302c
- Parent:
- 12:a0d37088b405
--- a/BufferedSerial.h Mon Mar 07 21:10:27 2016 +0000 +++ b/BufferedSerial.h Mon Mar 23 07:47:10 2020 +0000 @@ -75,6 +75,7 @@ MyBuffer <char> _txbuf; uint32_t _buf_size; uint32_t _tx_multiple; + FunctionPointer _rx; void rxIrq(void); void txIrq(void); @@ -135,6 +136,8 @@ * @return The number of bytes written to the Serial Port Buffer */ virtual ssize_t write(const void *s, std::size_t length); + + void attach(Callback<void()> func); }; #endif