Serial override, enabling a simple interface onto the mbed stdout redirect. Intended for Stage 1 students in the Department of Electronic Engineering at the University of York
Dependents: UoY-32C-lab2-start UoY-32C-lab7 UoY-32C-lab7-class UoY-32C-lab8-threads ... more
UoY-utils.h
- Committer:
- ajp109
- Date:
- 2020-11-21
- Revision:
- 0:5a0d57dc490b
File content as of revision 0:5a0d57dc490b:
#define serial_setup(tx,rx,baud) \ static BufferedSerial serial_port(tx, rx, baud); \ FileHandle *mbed::mbed_override_console(int fd) { \ return &serial_port; \ }