aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/xinput/USB_XInput_Descriptors.h
diff options
context:
space:
mode:
authorDavid Madison <dmadison@users.noreply.github.com>2019-02-17 17:05:16 -0500
committerDavid Madison <dmadison@users.noreply.github.com>2019-02-19 13:17:00 -0500
commita326a6ed8ee990acd8452adb2733a7c5f8a9963c (patch)
tree8ecef21306db23317897715ddeb9afbe351594a7 /cores/arduino/xinput/USB_XInput_Descriptors.h
parent60b8a6df837a31bc9783cf34a98bcda9917b7ba6 (diff)
Add XInput string descriptors
Diffstat (limited to 'cores/arduino/xinput/USB_XInput_Descriptors.h')
-rw-r--r--cores/arduino/xinput/USB_XInput_Descriptors.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cores/arduino/xinput/USB_XInput_Descriptors.h b/cores/arduino/xinput/USB_XInput_Descriptors.h
index e8c3c24..8cb19df 100644
--- a/cores/arduino/xinput/USB_XInput_Descriptors.h
+++ b/cores/arduino/xinput/USB_XInput_Descriptors.h
@@ -31,10 +31,19 @@
#if defined(USBCON)
+// Device Descriptor
extern const DeviceDescriptor USB_DeviceDescriptor PROGMEM;
+
+// Config Descriptor
extern const u8 USB_ConfigDescriptor[] PROGMEM;
extern const u16 USB_ConfigDescriptorSize PROGMEM;
+// String Descriptors
+extern const u8 STRING_SERIAL[] PROGMEM;
+extern const u8 STRING_SECURITY[] PROGMEM;
+
+#define ISECURITY 4
+
#undef USB_VID
#define USB_VID 0x045E