Modified USBDevice mainly for debug of serial port communications. It is unfinished and should not be used - use the main branch.
Fork of USBDevice by
Diff: USBSerial/USBCDC.cpp
- Revision:
- 11:04aaad10c94e
- Parent:
- 8:335f2506f422
--- a/USBSerial/USBCDC.cpp Fri Mar 01 13:10:29 2013 +0000 +++ b/USBSerial/USBCDC.cpp Sun Sep 01 23:34:33 2013 +0000 @@ -90,6 +90,10 @@ return USBDevice::write(EPBULK_IN, buffer, size, MAX_CDC_REPORT_SIZE); } +bool USBCDC::sendNB(uint8_t * buffer, uint32_t size) { + return USBDevice::writeNB(EPBULK_IN, buffer, size, MAX_CDC_REPORT_SIZE); +} + bool USBCDC::readEP(uint8_t * buffer, uint32_t * size) { if (!USBDevice::readEP(EPBULK_OUT, buffer, size, MAX_CDC_REPORT_SIZE)) return false;