Update for new version of mbed.
Fork of USBDevice_STM32F103 by
Diff: USBSerial/USBSerial.h
- Revision:
- 66:c86eab438152
- Parent:
- 65:48fe9050cb4a
- Child:
- 71:52ef20e36cab
--- a/USBSerial/USBSerial.h Fri Jul 08 21:16:25 2016 +0000 +++ b/USBSerial/USBSerial.h Wed Dec 14 21:16:38 2016 +0000 @@ -53,9 +53,10 @@ * @param vendor_id Your vendor_id (default: 0x1f00) * @param product_id Your product_id (default: 0x2012) * @param product_release Your preoduct_release (default: 0x0001) + * @param connect_blocking define if the connection must be blocked if USB not plugged in * */ - USBSerial(uint16_t vendor_id = 0x1f00, uint16_t product_id = 0x2012, uint16_t product_release = 0x0001): USBCDC(vendor_id, product_id, product_release), buf(128){ }; + USBSerial(uint16_t vendor_id = 0x1f00, uint16_t product_id = 0x2012, uint16_t product_release = 0x0001, bool connect_blocking = true): USBCDC(vendor_id, product_id, product_release, connect_blocking), buf(128){ }; /**