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
serial.h
00001 #ifndef SERIAL_H 00002 #define SERIAL_H 00003 00004 #include "mbed.h" 00005 00006 #define MAXRXBUF 80 00007 #define CR 0x0d 00008 00009 extern struct serialStatusBits serialStatus; 00010 00011 struct serialStatusBits 00012 { 00013 unsigned int command:1; // command available flag 00014 unsigned int repeat:1; // repeat flag 00015 unsigned int computer:1; // computer flag 00016 unsigned int command2:1; // command available flag on serial 2 00017 unsigned int spare:12; 00018 }; 00019 00020 extern char strbuf[150]; 00021 extern char rxbuf[MAXRXBUF+1]; 00022 extern volatile unsigned int bufloc; 00023 extern Serial pc; 00024 00025 void initSerial(void); 00026 void sendSerial(char *buf); 00027 void sendCRLF(void); 00028 void showRangeError(int , int , float ); 00029 00030 #endif
Generated on Sat Aug 27 2022 12:36:03 by
1.7.2