Working version on STM32F411. Test for CLI
Dependencies: FATFileSystem mbed-rtos mbed
Fork of USBHost by
Diff: USBHostSerial/MtxCircBuffer.h
- Revision:
- 4:b320d68e98e7
- Parent:
- 0:a554658735bf
- Child:
- 8:93da8ea2708b
--- a/USBHostSerial/MtxCircBuffer.h Wed Mar 06 17:50:07 2013 +0000 +++ b/USBHostSerial/MtxCircBuffer.h Tue Mar 12 17:23:37 2013 +0000 @@ -45,6 +45,11 @@ mtx.unlock(); return r; } + + void flush() { + write = 0; + read = 0; + } void queue(T k) { mtx.lock(); @@ -84,5 +89,3 @@ }; #endif - -