-
Notifications
You must be signed in to change notification settings - Fork 21
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
usbhs: implement USBHS USB device driver #63
Commits on Nov 3, 2024
-
crate: remove use of unstable feature naked_functions
Since all uses of naked_functions have been removed, remove the feature declaration to build on the stable toolchain.
Configuration menu - View commit details
-
Copy full SHA for 23ec707 - Browse repository at this point
Copy the full SHA 23ec707View commit details -
bugfix(otgfs): Remove wrong assertions
ExplodingWaffle pointed out[1] the host is allowed to send a shorter packet than what we were expecting. Remove the assertions and links to embassy. [1] ch32-rs#59 (comment) Reported-by: Harry Brooke <harry.brooke1@hotmail.co.uk>
Configuration menu - View commit details
-
Copy full SHA for a08faca - Browse repository at this point
Copy the full SHA a08facaView commit details -
usb: remove the dir function from Dir trait
Refactor to improve code reuse in USBHS.
Configuration menu - View commit details
-
Copy full SHA for 45a1c0c - Browse repository at this point
Copy the full SHA 45a1c0cView commit details -
Calling .unwrap can result in extra strings and bloat. Use the defmt unwrap macro.
Configuration menu - View commit details
-
Copy full SHA for 02566e1 - Browse repository at this point
Copy the full SHA 02566e1View commit details -
Setup USBHS related RCC register values. Co-authored-by: Harry Brooke <harry.brooke1@hotmail.co.uk> Co-authored-by: Codetector <codetector@codetector.org> Co-authored-by: Dummyc0m <xieyuanchu@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9dec54d - Browse repository at this point
Copy the full SHA 9dec54dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 29e93f6 - Browse repository at this point
Copy the full SHA 29e93f6View commit details -
usbhs: implement USBHS USB device driver
Implement the Embassy USB driver for the USBHS peripheral. The implementation largely mirrors the OTG_FS driver and has similar limitation such as non-configurable endpoint buffer sizes, in/out on the same endpoint index, lack of iso transfer, and untested bulk transfer. This change requires the latest fixes in ch32-metapac due to incorrect striding of the endpoint control registers. Tested on CH32V305 with the following applications: - USB HID device, for testing non-control endpoints interrupt transfer. - USB DFU, for testing the control endpoint. Co-authored-by: Harry Brooke <harry.brooke1@hotmail.co.uk> Co-authored-by: Codetector <codetector@codetector.org> Co-authored-by: Dummyc0m <xieyuanchu@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2966c4a - Browse repository at this point
Copy the full SHA 2966c4aView commit details -
cleanup(usb): EndpointBufferAllocator asserts
Small cleanup in EndpointBufferAllocator to ensure we don't request max_packet_size > 64
Configuration menu - View commit details
-
Copy full SHA for 8949439 - Browse repository at this point
Copy the full SHA 8949439View commit details