summaryrefslogtreecommitdiff
path: root/examples/device/hid_generic_inout/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-12 19:38:04 +0700
committerhathach <[email protected]>2019-07-12 19:38:04 +0700
commit2b7acd554a00f196394fdb91cd11a18e7981949f (patch)
tree825cc8a6d1eb87aa11766cda4d98d3be6b1c9f56 /examples/device/hid_generic_inout/src
parentfdf39dd4aee82dc63d94a5a4e9423ecc15a268a1 (diff)
updating webusb with cdc
Diffstat (limited to 'examples/device/hid_generic_inout/src')
-rw-r--r--examples/device/hid_generic_inout/src/usb_descriptors.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/device/hid_generic_inout/src/usb_descriptors.c b/examples/device/hid_generic_inout/src/usb_descriptors.c
index 516dab646..849c2be8a 100644
--- a/examples/device/hid_generic_inout/src/usb_descriptors.c
+++ b/examples/device/hid_generic_inout/src/usb_descriptors.c
@@ -92,10 +92,8 @@ enum
ITF_NUM_TOTAL
};
-enum
-{
- CONFIG_TOTAL_LEN = TUD_CONFIG_DESC_LEN + TUD_HID_INOUT_DESC_LEN
-};
+
+#define CONFIG_TOTAL_LEN (TUD_CONFIG_DESC_LEN + TUD_HID_INOUT_DESC_LEN)
// Use Endpoint 2 instead of 1 due to NXP MCU
// LPC 17xx and 40xx endpoint type (bulk/interrupt/iso) are fixed by its number