diff options
| author | hathach <[email protected]> | 2025-10-28 13:21:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-28 14:14:01 +0700 |
| commit | d92b810df7670aae0e195fd02abef5014470c2f7 (patch) | |
| tree | 483d0928f9c1f5bd75770b23d9309dcb5113312c /examples/device/hid_boot_interface/src/usb_descriptors.c | |
| parent | 417f44acab92c42338b584bd0511e51781ff2821 (diff) | |
fix Identifiers that start with '__' or '_[A-Z]' are reserved.
fix compiling with nuc family
Diffstat (limited to 'examples/device/hid_boot_interface/src/usb_descriptors.c')
| -rw-r--r-- | examples/device/hid_boot_interface/src/usb_descriptors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/hid_boot_interface/src/usb_descriptors.c b/examples/device/hid_boot_interface/src/usb_descriptors.c index a830dfea8..9b4becc85 100644 --- a/examples/device/hid_boot_interface/src/usb_descriptors.c +++ b/examples/device/hid_boot_interface/src/usb_descriptors.c @@ -33,9 +33,9 @@ * Auto ProductID layout's Bitmap: * [MSB] HID | MSC | CDC [LSB] */ -#define _PID_MAP(itf, n) ((CFG_TUD_##itf) ? (1 << (n)) : 0) -#define USB_PID (0x4000 | _PID_MAP(CDC, 0) | _PID_MAP(MSC, 1) | _PID_MAP(HID, 2) | \ - _PID_MAP(MIDI, 3) | _PID_MAP(VENDOR, 4) ) +#define PID_MAP(itf, n) ((CFG_TUD_##itf) ? (1 << (n)) : 0) +#define USB_PID (0x4000 | PID_MAP(CDC, 0) | PID_MAP(MSC, 1) | PID_MAP(HID, 2) | \ + PID_MAP(MIDI, 3) | PID_MAP(VENDOR, 4) ) //--------------------------------------------------------------------+ // Device Descriptors |
