File tree 3 files changed +15
-9
lines changed 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -979,12 +979,16 @@ void USBDeviceClass::ISRHandler()
979
979
}
980
980
}
981
981
982
- /*
983
- * USB Device instance
984
- * -------------------
985
- */
982
+ // PluggableUSB contructor
983
+ PluggableUSB_::PluggableUSB_ () : lastIf(CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT),
984
+ lastEp(CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT),
985
+ rootNode(NULL ), totalEP(USB_ENDPOINTS)
986
+ {
987
+ // Empty
988
+ }
986
989
987
- // USBDevice class instance
988
- USBDeviceClass USBDevice;
990
+ void * epBuffer (unsigned int lastEp) {
991
+ return &(EndPoints[lastEp]);
992
+ }
989
993
990
994
#endif
Original file line number Diff line number Diff line change 16
16
** SOFTWARE.
17
17
*/
18
18
19
- #include " USB /PluggableUSB.h"
19
+ #include " api /PluggableUSB.h"
20
20
#include " HID.h"
21
21
22
22
#if defined(USBCON)
23
23
24
+ extern USBDeviceClass USBDevice;
25
+
24
26
HID_& HID ()
25
27
{
26
28
static HID_ obj;
Original file line number Diff line number Diff line change 21
21
22
22
#include < stdint.h>
23
23
#include < Arduino.h>
24
- #include " USB /PluggableUSB.h"
24
+ #include " api /PluggableUSB.h"
25
25
26
26
#if defined(USBCON)
27
27
@@ -99,7 +99,7 @@ class HID_ : public PluggableUSBModule
99
99
uint8_t getShortName (char * name);
100
100
101
101
private:
102
- uint32_t epType[1 ];
102
+ unsigned int epType[1 ];
103
103
104
104
HIDSubDescriptor* rootNode;
105
105
uint16_t descriptorSize;
You can’t perform that action at this time.
0 commit comments