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

examples/usbfs_device: add an USBFS device example #38

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rmsyn
Copy link

@rmsyn rmsyn commented Jun 18, 2023

Adds an example for creating a USBFS device that acts like an HID keyboard.

The example is simple, and sends the string Hello as five HID keyboard reports.

Depends on riscv-rust/gd32vf103xx-hal#56 and riscv-rust/gd32vf103xx-hal#57

rmsyn added 3 commits May 26, 2023 05:45
Updates `gd32vxx-hal` dependency to include the `rt` and
`critical-section` features.
Adds default interrupt handler symbols in `device.x` file. Enables
weakly defined symbols that default to `DefaultHandler` implementations.
Handlers can be redefined, as in `examples/interrupt.rs`.
Adds an example for creating a USBFS device that acts like an HID
keyboard.

The example is simple, and sends the string `Hello` as five HID keyboard
reports.
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