rust-embedded / rust-embedded/svd2rust
Indirect register access
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 857
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to be able to use svd2rust for SVDs that describe indirect accesses via a data port register (for example the infamous pci index and pci data register, MSRs, etc).
I'll try to extend svd2rust to do that, but I wanted to ask first
(1) Whether there will be unforseen hurdles
(2) Whether there is interest in that
For these kind of indirect accesses, svd2rust would not be able to use RegisterBlocks that are represented as real C structs directly accessed via MMIO. Reason is because the indirect access only allows you to read/write one word at a time.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing svd2rust's register-map generation and how it handles SVD-described access paths. The issue provides no file, test, or entry point, so first determine where register blocks and MMIO assumptions are generated. Done would mean indirect data-port accesses are supported without relying on direct C-struct-style MMIO.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100