Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: BufferSerial.cpp
- Revision:
- 0:07be23bfcae4
- Child:
- 1:476b874003d8
diff -r 000000000000 -r 07be23bfcae4 BufferSerial.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/BufferSerial.cpp Tue Nov 10 08:56:55 2020 +0000
@@ -0,0 +1,26 @@
+#include "BufferSerial.h"
+
+BufferSerial::BufferSerial(PinName tx, PinName rx) :
+ serial(tx,rx)
+{
+
+ // initialize functions
+ _rx_buffer_head(0);
+ _rx_buhher_tail(0);
+ // attach
+ serial.attach(this,&BufferSerial::serial_rx, Serial::RxIrq);
+}
+
+int BufferSerial::available(void){
+
+}
+
+unsigned char BufferSirial::read(void){
+
+}
+
+void BufferSerial::erial_rx(){
+ while(serial.readable()){
+
+ }
+}
\ No newline at end of file