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

feat: port the Embassy USB HID keyboard example #25

Closed

Conversation

ROMemories
Copy link
Collaborator

This is experimental, for documentation only; should not be merged.

This ports the Embassy USB HID keyboard example to RIOT-rs.

It highlights some remaining challenges, in particular:

  • How should we expose peripherals to tasks, after some of them have been moved out of the Peripherals struct during the initialization phase?
  • How can we allow configuring these drivers from within user tasks?
  • Can we make sure at compile time that drivers that can be used only once are actually taken by no more than one user task?

This ports the Embassy USB HID keyboard example [1] to RIOT-rs.

It highlights some remaining challenges, in particular:

- How should we expose peripherals to tasks, after some of them have
  been moved out of the Peripherals struct during the initialization phase?
- How can we allow configuring these drivers from within tasks?
- Can we make sure at compile time that drivers that can be used only
  once are actually taken by no more than one task?

[1] https://github.com/embassy-rs/embassy/blob/14f41a71b6ea9dedb4ee5b9c741fe10575772c7d/examples/nrf52840/src/bin/usb_hid_keyboard.rs
@kaspar030
Copy link
Collaborator

This got merged with #87.

@kaspar030 kaspar030 closed this Feb 22, 2024
@ROMemories ROMemories added the USB label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants