Will the serial interface support USB CDC implementations of serial like on the Arduino Leonardo?

Open
#302 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
embedded-iot

Research direction

Start by reviewing the embedded-hal serial interface and the USB CDC and 1200-baud autoreset behavior described in the issue. Determine whether both use cases belong in the HAL and define the required scope and completion criteria with maintainers.

Written by the indexing model from the issue text.

Description

The normal way of interacting with an Arduino Leonardo has a few interesting features:

  • The serial output goes over usb and is controlled by the same processor running your code. The arduino framework for leonardo implements a usb initialization and use the USB CDC class device for serial output.
  • The autoreset is implemented by connecting to the CDC port at 1200 baud. This is also part of the USB handling in the arduino framework.

Will this hal be able to support these use cases so that platforms like the leonardo can be used ergonomically with a rust toolchain?

Thanks for your work on this project. I love it. :)

Dominant language
Rust
Stars
2.7k
Forks
282
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-embedded/embedded-hal

All issues in rust-embedded/embedded-hal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.