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: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