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
Diff: UoY-utils.h
- Revision:
- 0:5a0d57dc490b
diff -r 000000000000 -r 5a0d57dc490b UoY-utils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/UoY-utils.h Sat Nov 21 13:35:39 2020 +0000 @@ -0,0 +1,5 @@ +#define serial_setup(tx,rx,baud) \ +static BufferedSerial serial_port(tx, rx, baud); \ +FileHandle *mbed::mbed_override_console(int fd) { \ + return &serial_port; \ +}