Commit Graph

14 Commits

Author SHA1 Message Date
László Monda
5eca5e58fb Number endpoints according to the order of their related interfaces. 2016-03-10 14:35:05 +01:00
László Monda
a988afe1ea Use USB_DEVICE_CONFIG_HID as a single source of truth and replace USB_COMPOSITE_INTERFACE_COUNT with it. 2016-03-03 23:55:58 +01:00
László Monda
df63abeb3a Ditch USB_*_SUBCLASS and USB_*_PROTOCOL macros in favor of the standard USB_HID_SUBCLASS_* USB_HID_PROTOCOL_* macros. 2016-03-03 22:02:28 +01:00
László Monda
55e5643bf0 Replace USB_*_HID_CLASS with USB_CLASS_HID 2016-03-03 21:17:11 +01:00
László Monda
7b04084f46 Rename USB_*_ENDPOINT_ID to USB_*_ENDPOINT_INDEX 2016-03-03 21:08:08 +01:00
László Monda
09e0a739e3 Use USB_INTERFACE_ALTERNATE_SETTING_NONE wherever possible. 2016-03-03 21:01:14 +01:00
László Monda
f7755b2520 Rename usb_report_item_macros.h to usb_api.h, include the whole USB API into it, and include it from every file where it's needed. 2016-03-03 19:18:21 +01:00
László Monda
55c063c69a Don't use the U number notation and macro parentheses unless necessary. 2016-03-03 18:27:39 +01:00
László Monda
fa1afbbb9b Make the names of guard macros reflect the filenames they're in. 2016-03-03 16:14:55 +01:00
László Monda
9ef0c484ba Make Generic HID the first interface because further interfaces may be added in the future and this way its index will be fixed and well defined. 2016-03-03 11:12:24 +01:00
László Monda
66b8d72c70 Merge usb_class_*.[ch] into usb_interface_*.[ch] respectively. 2016-03-03 01:07:07 +01:00
László Monda
b3867fe6de Remove usb_device_generic_hid_struct_t in favor of a local buffer and buffer index variable. 2016-03-02 20:26:06 +01:00
László Monda
286c16c627 Remove unused idleRate members. 2016-03-02 16:16:17 +01:00
László Monda
ba1aee598d Restructure the codebase across more files. 2016-02-29 20:44:53 +01:00