diff options
| author | Damien George | 2015-04-13 16:59:05 +0100 |
|---|---|---|
| committer | Damien George | 2015-04-13 16:59:05 +0100 |
| commit | b1f68685ec462bcde572455c262cb78a53112816 (patch) | |
| tree | 9f320ba8e128e1888dcf68a049b52791b31ad0df /stmhal/usbdev/class/inc | |
| parent | 99f718407336bf2bd1c07035399e9809f72d4586 (diff) | |
stmhal: In USB HID driver, make polling interval configurable.
When setting usb_mode to "HID", hid config object now has
polling-interval (in ms) as the 4th element. It mmust now be a 5-tuple
of the form:
(subclass, protocol, max_packet_len, polling_interval, report_desc)
The mouse and keyboard defaults have polling interval at 8ms.
Diffstat (limited to 'stmhal/usbdev/class/inc')
| -rw-r--r-- | stmhal/usbdev/class/inc/usbd_cdc_msc_hid0.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/usbdev/class/inc/usbd_cdc_msc_hid0.h b/stmhal/usbdev/class/inc/usbd_cdc_msc_hid0.h index 7bf2cf955..bc9d0d21a 100644 --- a/stmhal/usbdev/class/inc/usbd_cdc_msc_hid0.h +++ b/stmhal/usbdev/class/inc/usbd_cdc_msc_hid0.h @@ -44,6 +44,7 @@ typedef struct _USBD_HID_ModeInfoTypeDef { uint8_t subclass; // 0=no sub class, 1=boot uint8_t protocol; // 0=none, 1=keyboard, 2=mouse uint8_t max_packet_len; // only support up to 255 + uint8_t polling_interval; // in units of 1ms uint8_t report_desc_len; const uint8_t *report_desc; } USBD_HID_ModeInfoTypeDef; |
