summaryrefslogtreecommitdiffstats
path: root/usb
diff options
context:
space:
mode:
Diffstat (limited to 'usb')
-rw-r--r--usb/descriptors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usb/descriptors.h b/usb/descriptors.h
index b1b143d..a2b56f8 100644
--- a/usb/descriptors.h
+++ b/usb/descriptors.h
@@ -59,7 +59,8 @@ unsigned char ds_conf[] = {
0, // Country code
1, // Number of descriptors
34, // Descriptor type
- U16LE(52), // Descriptor length
+#define DS_HIDREP_SIZE 52
+ U16LE(DS_HIDREP_SIZE), // Descriptor length
/* Endpoint */
7, // Length
@@ -72,7 +73,6 @@ unsigned char ds_conf[] = {
_Static_assert(sizeof ds_conf == DS_CONF_SIZE, "sizeof ds_conf != DS_CONF_SIZE");
/* HID Report descriptor */
-#define DS_HIDREP_SIZE 52
unsigned char ds_hidrep[] = {
HR_USAGE_PAGE(1), HR_GENERIC_DESKTOP,
HR_USAGE(1), HR_MOUSE,