Skip to content

USB API improvements and documentation - #1130

Draft
piotrfila wants to merge 13 commits into
ZigEmbeddedGroup:mainfrom
piotrfila:usb-api
Draft

piotrfila wants to merge 13 commits into
ZigEmbeddedGroup:mainfrom
piotrfila:usb-api

Conversation

@piotrfila

@piotrfila piotrfila commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Based on talks on discord with @vesim987

This should make some drivers (such as HID) more ergonomic.

Major changes:

  • usb.DeviceController options and configuration data are now separate
  • usb.DeviceController configuration data now includes driver options
  • Some functionality of usb.DeviceController moved to usb.Configuration (which brings us closer to supporting multiple configurations per device)
  • Added an example for usb.driver.EchoExample, so that the driver does not bitrot.
  • Hopefully made some of the comptime magic more comprehensible [more TODO]
  • Added documentation of the usb driver interface [more TODO]
  • [TODO] Add check that the comptime driver interface is implemented correctly in drivers

@piotrfila
piotrfila marked this pull request as draft November 10, 2026 19:08

This branch has not been deployed

No deployments
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