File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -926,12 +926,16 @@ void USBDeviceClass::ISRHandler()
926926 }
927927}
928928
929- /*
930- * USB Device instance
931- * -------------------
932- */
929+ // PluggableUSB contructor
930+ PluggableUSB_::PluggableUSB_ () : lastIf(CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT),
931+ lastEp(CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT),
932+ rootNode(NULL ), totalEP(USB_ENDPOINTS)
933+ {
934+ // Empty
935+ }
933936
934- // USBDevice class instance
935- USBDeviceClass USBDevice;
937+ void * epBuffer (unsigned int lastEp) {
938+ return &(EndPoints[lastEp]);
939+ }
936940
937941#endif
Original file line number Diff line number Diff line change 1616** SOFTWARE.
1717*/
1818
19- #include " USB /PluggableUSB.h"
19+ #include " api /PluggableUSB.h"
2020#include " HID.h"
2121
2222#if defined(USBCON)
2323
24+ extern USBDeviceClass USBDevice;
25+
2426HID_& HID ()
2527{
2628 static HID_ obj;
Original file line number Diff line number Diff line change 2121
2222#include < stdint.h>
2323#include < Arduino.h>
24- #include " USB /PluggableUSB.h"
24+ #include " api /PluggableUSB.h"
2525
2626#if defined(USBCON)
2727
@@ -99,7 +99,7 @@ class HID_ : public PluggableUSBModule
9999 uint8_t getShortName (char * name);
100100
101101private:
102- uint32_t epType[1 ];
102+ unsigned int epType[1 ];
103103
104104 HIDSubDescriptor* rootNode;
105105 uint16_t descriptorSize;
You can’t perform that action at this time.
0 commit comments