Added multiple Report ID support to the HID class driver. Removed OUT endpoint support from HID driver (all OUT reports are now processed through control requests) as a seperate endpoint had issues with determining the exact output report length.
This commit is contained in:
parent
7665bf323e
commit
3d1baa6f95
23 changed files with 96 additions and 128 deletions
|
@ -54,15 +54,11 @@
|
|||
USB_Descriptor_Interface_t Interface;
|
||||
USB_Descriptor_HID_t KeyboardHID;
|
||||
USB_Descriptor_Endpoint_t KeyboardEndpoint;
|
||||
USB_Descriptor_Endpoint_t KeyboardLEDsEndpoint;
|
||||
} USB_Descriptor_Configuration_t;
|
||||
|
||||
/* Macros: */
|
||||
/** Endpoint number of the Keyboard HID reporting IN endpoint. */
|
||||
#define KEYBOARD_EPNUM 1
|
||||
|
||||
/** Endpoint number of the Keyboard HID reporting OUT endpoint. */
|
||||
#define KEYBOARD_LEDS_EPNUM 2
|
||||
|
||||
/** Size in bytes of the Keyboard HID reporting IN and OUT endpoints. */
|
||||
#define KEYBOARD_EPSIZE 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue