Treehouse Mbed Team / Mbed 2 deprecated 1U5_proto_X

Dependencies:   mbed

Revision:
0:b3410a1e9843
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/inc/serial.h	Thu Jan 27 21:58:14 2022 +0000
@@ -0,0 +1,30 @@
+#ifndef SERIAL_H
+#define SERIAL_H
+
+#include "mbed.h"
+
+#define MAXRXBUF 80
+#define CR 0x0d
+
+extern struct serialStatusBits serialStatus;
+
+struct serialStatusBits
+{
+  unsigned int command:1;   // command available flag
+  unsigned int repeat:1;    // repeat flag
+  unsigned int computer:1;  // computer flag
+  unsigned int command2:1;   // command available flag on serial 2
+  unsigned int spare:12;
+};
+
+extern char strbuf[150];
+extern char rxbuf[MAXRXBUF+1];
+extern volatile unsigned int bufloc;
+extern Serial pc;
+
+void initSerial(void);
+void sendSerial(char *buf);
+void sendCRLF(void);
+void showRangeError(int , int , float );
+
+#endif
\ No newline at end of file