Skip to content

Update USBD library to match USBFS API & support HID - #935

Open
cheyao wants to merge 1 commit into
cnlohr:masterfrom
cheyao:usbd-lib
Open

Update USBD library to match USBFS API & support HID#935
cheyao wants to merge 1 commit into
cnlohr:masterfrom
cheyao:usbd-lib

Conversation

@cheyao

@cheyao cheyao commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Tested with examples:

  • bootloader
  • usbfs_bulk_echo
  • usbfs_cdc_tty
  • usbfs_device
  • usbfs_cdc_ecm (Not 100% sure if I'm accessing the network interface correctly, not a networking guy)

Update:

  • usbfs_msc now works

Limitations:

  • USBD peripheral is fundamentally different from USBFS, so anything that access raw USBFS will take effort to port (usbfs_cdc_uart)

More info on discord

PS. The code style is base on clang-format in this repo. (My usual style isn't this xD)

@cheyao
cheyao force-pushed the usbd-lib branch 2 times, most recently from 5ccfe32 to d855ed5 Compare July 24, 2026 20:14
@cheyao

cheyao commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Also fixed the usbd demo

@cnlohr

cnlohr commented Jul 27, 2026

Copy link
Copy Markdown
Owner

@biemster @monte-monte can you review this?

@biemster

Copy link
Copy Markdown
Contributor

i can review when I'm back from holiday.
One thing i can say now is that msc should work, i use that with the current usbd extralib. but that doesn't have to be a blocker for this pr although it is a regression.

@cnlohr

cnlohr commented Jul 28, 2026

Copy link
Copy Markdown
Owner

I will leave this open for you.

@cheyao
cheyao force-pushed the usbd-lib branch 3 times, most recently from 3d0854b to c8d35c9 Compare July 30, 2026 12:19
@cheyao

cheyao commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@cnlohr I've just updated the lib to fix a few bugs. Now all the examples that don't heavily rely on USBFS work!

Comment thread extralibs/usbd.h
@cnlohr

cnlohr commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Just need a 👍 from @monte-monte and @biemster

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.

4 participants