Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
USB device descriptor: set bInterval=1 to reduce input latency
  • Loading branch information
stapelberg committed May 8, 2021
1 parent cae21f3 commit b40ae02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sources/usb_device_descriptor.h
Expand Up @@ -78,8 +78,8 @@

#define HS_HID_MOUSE_INTERRUPT_IN_PACKET_SIZE (8U)
#define FS_HID_MOUSE_INTERRUPT_IN_PACKET_SIZE (8U)
#define HS_HID_MOUSE_INTERRUPT_IN_INTERVAL (0x06U) /* 2^(6-1) = 4ms */
#define FS_HID_MOUSE_INTERRUPT_IN_INTERVAL (0x04U)
#define HS_HID_MOUSE_INTERRUPT_IN_INTERVAL (0x01U) /* 125us */
#define FS_HID_MOUSE_INTERRUPT_IN_INTERVAL (0x01U) /* 1ms */

#define USB_HID_KEYBOARD_CLASS (0x03U)
#define USB_HID_KEYBOARD_SUBCLASS (0x01U)
Expand All @@ -93,8 +93,8 @@

#define HS_HID_KEYBOARD_INTERRUPT_IN_PACKET_SIZE (8U)
#define FS_HID_KEYBOARD_INTERRUPT_IN_PACKET_SIZE (8U)
#define HS_HID_KEYBOARD_INTERRUPT_IN_INTERVAL (0x06U) /* 2^(6-1) = 4ms */
#define FS_HID_KEYBOARD_INTERRUPT_IN_INTERVAL (0x04U)
#define HS_HID_KEYBOARD_INTERRUPT_IN_INTERVAL (0x01U) /* 125us */
#define FS_HID_KEYBOARD_INTERRUPT_IN_INTERVAL (0x01U) /* 1ms */

#define USB_HID_KEYBOARD_REPORT_LENGTH (0x08U)

Expand Down

0 comments on commit b40ae02

Please sign in to comment.