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
inc/serial.h
- Committer:
- Slord2142
- Date:
- 2022-01-27
- Revision:
- 0:b3410a1e9843
File content as of revision 0:b3410a1e9843:
#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