afLib 1.3 which is supporting both SPI and UART

Dependencies:   vt100 mbed afLib_1_3

Revision:
0:87662653a3c6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/af_utils/edgeSerial.h	Mon Apr 23 06:15:26 2018 +0000
@@ -0,0 +1,20 @@
+#ifndef _EDGESERIAL_H_
+#define _EDGESERIAL_H_
+
+#include "mbed.h"
+
+class edgeSerial : public Serial {
+public:
+    edgeSerial(PinName txPin, PinName rxPin, int baud) ;
+
+    bool edge_available(void) { return Serial::readable() ; }
+    char edge_peek(void) ;
+    char edge_read(void) ;
+    void edge_read(uint8_t *buffer, int len) ;
+    void edge_write(uint8_t *buffer, int len) ;
+private:
+    bool _is_peeked ;
+    uint8_t _peeked_byte ;
+} ;
+
+#endif
\ No newline at end of file