SerialStream fork implementing sigio, attach, readable, and writable

Revision:
2:3736580f2dbe
Parent:
1:9437ea7d0799
Child:
3:8c05c0310859
--- a/SerialStream.h	Tue Aug 25 17:53:20 2020 -0700
+++ b/SerialStream.h	Thu Nov 12 22:25:27 2020 -0800
@@ -1,7 +1,6 @@
 #ifndef SERIALSTREAM_H
 #define SERIALSTREAM_H
 
-#include <mbed.h>
 #include <platform/Stream.h>
 
 /**
@@ -32,9 +31,6 @@
 	{
 	}
 
-
-private:
-
 	// override Stream::read() and write() to call serial class directly.
 	// This avoids the overhead of feeding in individual characters.
 	virtual ssize_t write(const void *buffer, size_t length)
@@ -47,6 +43,7 @@
 		return serialClass.read(buffer, length);
 	}
 
+protected:
 	// Dummy implementations -- these will never be called because we override write() and read() instead.
 	// but we have to override them since they're pure virtual.
 	virtual int _putc(int c) { return 0; }