Skip to content

riscv: Add From<usize> and From<CSR> on csr! types - #410

Open
JurajSadel wants to merge 1 commit into
rust-embedded:masterfrom
JurajSadel:feat/csr-from-usize
Open

riscv: Add From<usize> and From<CSR> on csr! types#410
JurajSadel wants to merge 1 commit into
rust-embedded:masterfrom
JurajSadel:feat/csr-from-usize

Conversation

@JurajSadel

Copy link
Copy Markdown

Every type generated by the csr! macro already exposes from_bits() and bits(). This adds the corresponding standard conversions.

@JurajSadel
JurajSadel requested a review from a team as a code owner August 6, 2026 14:41
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