USBHost library. NOTE: This library is only officially supported on the LPC1768 platform. For more information, please see the handbook page.
Dependencies: FATFileSystem mbed-rtos
Dependents: BTstack WallbotWii SD to Flash Data Transfer USBHost-MSD_HelloWorld ... more
Legacy Warning
This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.
Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.
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 - -