Skip to content

Refactor hid host#1968

Merged
hathach merged 8 commits intomasterfrom
refactor-hid-host
Mar 22, 2023
Merged

Refactor hid host#1968
hathach merged 8 commits intomasterfrom
refactor-hid-host

Conversation

@hathach
Copy link
Owner

@hathach hathach commented Mar 22, 2023

Describe the PR

  • relax hid host enumeration, allow set protocol to be stalled
  • add note for blocking tuh_configuration_set(), tuh_interface_set()
  • change meaning of CFG_TUH_HID to total number of HID interfaces supported. Previously CFG_TUH_HID is max number of interfaces per device which is rather limited and consume more resources than needed.
  • fine tune CFG_TUH_HID value to 3*max_device (previously must be 4*dev and yet couldn't support 1 device with 5 interfaces while other left unused)
  • change hid host instance in API to index
  • add tuh_task_event_ready(), better implement blocking control transfer for rtos
  • add tuh_hid_itf_get_info() and change tuh_cdc_itf_get_info() to use new tuh_itf_info_t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant