UART Driver to receive asynchronous Serial Comms from a Raspberry Pi and parse the results.
Diff: SerialComms.cpp
- Revision:
- 10:55cb02b00338
- Parent:
- 9:8e0a7d3f2f39
- Child:
- 11:b5f4a9e69d96
--- a/SerialComms.cpp Fri Mar 04 06:51:59 2016 +0000 +++ b/SerialComms.cpp Fri Mar 04 23:07:43 2016 +0000 @@ -36,14 +36,6 @@ incomingDataUpdate = FALSE; } -#define MOTORS_FORWARD 0x09 -#define MOTORS_BACKWARD 0x06 -#define MOTORS_LEFT 0x05 -#define MOTORS_RIGHT 0x0A -#define MOTORS_ARM 0x01 - - - void SerialComms::incomingDataISR() { receiverBuffer = _HLC_Conn -> getc(); @@ -70,4 +62,5 @@ incomingDataUpdate = FALSE; return 0xFF; } + return; }