Ditch USB_*_SUBCLASS and USB_*_PROTOCOL macros in favor of the standard USB_HID_SUBCLASS_* USB_HID_PROTOCOL_* macros.

This commit is contained in:
László Monda
2016-03-03 22:02:28 +01:00
parent 55e5643bf0
commit df63abeb3a
8 changed files with 20 additions and 31 deletions

View File

@@ -26,6 +26,13 @@
#define USB_INTERFACE_ALTERNATE_SETTING_NONE 0x00
#define USB_STRING_DESCRIPTOR_NONE 0x00
#define USB_HID_SUBCLASS_NONE 0
#define USB_HID_SUBCLASS_BOOT 1
#define USB_HID_PROTOCOL_NONE 0
#define USB_HID_PROTOCOL_KEYBOARD 1
#define USB_HID_PROTOCOL_MOUSE 2
// Descriptor lengths
#define USB_HID_DESCRIPTOR_LENGTH 9