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.
Dependencies: mbed
Diff: inc/serial.h
- Revision:
- 0:44a3005d4f20
- Child:
- 1:9f8583ba2431
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/inc/serial.h Sat Nov 24 18:22:31 2018 +0000
@@ -0,0 +1,29 @@
+#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[100];
+extern char rxbuf[MAXRXBUF+1];
+extern volatile unsigned int bufloc;
+extern Serial pc;
+
+void initSerial(void);
+void sendSerial(char *buf);
+void sendCRLF(void);
+
+#endif
\ No newline at end of file