Undo constrain / split peripheral

Open
#210 1 comment 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

The issue names no files, tests, or entry points. Start by reviewing the existing resource ownership and type-state APIs related to UART, GPIO, and constrain/split operations, then determine whether a reusable embedded-hal interface is appropriate; done means a clear, agreed approach for safely repurposing the pin.

Written by the indexing model from the issue text.

Description

Hi!

I cannot find any valuable information about how to handle my case:
I need to reconfigure the pin between its alternate function (UART in my case) and GPIO input. I am rust beginner, very impressed by the type state and entire safety net built around it, but I can't see any way to unconstrain / unsplit resources I'd like to repurpose.

Not sure if it fits general embedded-hal scope, because handling hardware resources is kinda device specific, but I think this is very generic case - perhaps some interface could be provided (or exists) to allow this kind of behavior...

Not sure if I am not missing something by using wrong keywords, but I didn't find anything viable on this topic

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.