adds a USB serial port to your design
Dependents: Example_WatchDog_Timer
Diff: USBSerial/USBSerial.h
- Revision:
- 77:3e96144c2bf2
- Parent:
- 70:2c525a50f1b6
- Child:
- 78:772335cfca9a
diff -r 3d21c913753e -r 3e96144c2bf2 USBSerial/USBSerial.h --- a/USBSerial/USBSerial.h Fri Nov 23 18:05:40 2018 +0000 +++ b/USBSerial/USBSerial.h Mon Nov 26 20:46:02 2018 +0000 @@ -75,7 +75,14 @@ * @returns character read */ virtual int _getc(); - + + /** + * Read a string of characters + * + * @returns character read + */ + virtual int _read(void* buffer, int length); + virtual int _write(uint8_t * buf, uint16_t size); /** * Check the number of bytes available. *