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:
- mfwic
- Date:
- 2018-11-24
- Revision:
- 0:44a3005d4f20
- Child:
- 1:9f8583ba2431
File content as of revision 0:44a3005d4f20:
#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