diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-04-16 13:07:22 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-04-16 13:07:22 +0100 |
commit | c996951703f0062ef81e278936f0cf8d0581a200 (patch) | |
tree | 42961be1f7f2e25fdc3071e286f393f444d05b18 | |
parent | bbdcd2af9193dde1d7aca25dfdb920fa062fe9da (diff) | |
download | fmk-c996951703f0062ef81e278936f0cf8d0581a200.tar.gz fmk-c996951703f0062ef81e278936f0cf8d0581a200.tar.xz fmk-c996951703f0062ef81e278936f0cf8d0581a200.zip |
usb/descriptors: de-duplicate HID Report Descriptor size
-rw-r--r-- | usb/descriptors.h | 4 |
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, |