Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement TinyUSB HID driver back end #1412

Merged
merged 12 commits into from
Mar 22, 2024
Merged

implement TinyUSB HID driver back end #1412

merged 12 commits into from
Mar 22, 2024

Conversation

tlyu
Copy link
Collaborator

@tlyu tlyu commented Mar 22, 2024

Implement a TinyUSB HID driver back end. Some future work may need to happen around buffering HID reports when resuming from suspend.

This depends on the new getProtocol method of Adafruit_USBD_HID, which has been released in Adafruit_TinyUSB_HID, but not yet incorporated into the Adafruit nRF52 core. (CI builds should succeed anyway, because no example sketch or hardware plugin uses this driver yet.)

tlyu added 12 commits March 21, 2024 19:23
Signed-off-by: Taylor Yu <[email protected]>
Signed-off-by: Taylor Yu <[email protected]>
Requires a patched Adafruit_TinyUSB_Arduino library.

Signed-off-by: Taylor Yu <[email protected]>
Still needs tuning/buffering to avoid dropping events.

Signed-off-by: Taylor Yu <[email protected]>
Signed-off-by: Taylor Yu <[email protected]>
Explicitly regenerate the TinyUSB descriptor set when changing report
descriptors, so the HID desriptor will show the correct length.

Signed-off-by: Taylor Yu <[email protected]>
Signed-off-by: Taylor Yu <[email protected]>
Signed-off-by: Taylor Yu <[email protected]>
@obra obra merged commit fd7f5f9 into keyboardio:master Mar 22, 2024
8 checks passed
@obra
Copy link
Member

obra commented Mar 22, 2024

Thanks! Merged.

@tlyu tlyu deleted the tusb branch March 22, 2024 19:47
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.

2 participants