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

Committer:
ajp109
Date:
Sat Nov 21 13:35:39 2020 +0000
Revision:
0:5a0d57dc490b
Initial commit (serial_setup only)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ajp109 0:5a0d57dc490b 1 #define serial_setup(tx,rx,baud) \
ajp109 0:5a0d57dc490b 2 static BufferedSerial serial_port(tx, rx, baud); \
ajp109 0:5a0d57dc490b 3 FileHandle *mbed::mbed_override_console(int fd) { \
ajp109 0:5a0d57dc490b 4 return &serial_port; \
ajp109 0:5a0d57dc490b 5 }