USB Composite support

Dependents:   mbed_cdc_hid_composite

Fork of USBDevice by mbed official

Revision:
55:7c559fcb1d17
Parent:
25:7c72828865f3
--- a/USBSerial/USBCDC.h	Fri May 22 08:45:47 2015 +0100
+++ b/USBSerial/USBCDC.h	Sun May 31 15:36:50 2015 +0000
@@ -26,7 +26,7 @@
 
 #include "USBDevice.h"
 
-class USBCDC: public USBDevice {
+class USBCDC: public USBInterface {
 public:
 
     /*
@@ -37,7 +37,7 @@
     * @param product_release Your preoduct_release
     * @param connect_blocking define if the connection must be blocked if USB not plugged in
     */
-    USBCDC(uint16_t vendor_id, uint16_t product_id, uint16_t product_release, bool connect_blocking);
+    USBCDC(USBDevice *usb, uint8_t ep_int_in, uint8_t ep_bulk_in, uint8_t ep_bulk_out, bool connect_blocking);
 
 protected:
 
@@ -118,6 +118,15 @@
     virtual bool USBCallback_setConfiguration(uint8_t configuration);
     volatile bool terminal_connected;
 
+    USBDevice *_usb;
+
+    uint8_t _ep_int_in; //EPINT_IN
+    uint8_t _ep_bulk_in; //EPBULK_IN
+    uint8_t _ep_bulk_out; //EPBULK_OUT
+
+
 };
 
+
+
 #endif