Skip to content

Commit

Permalink
riscv: use paste crate for macros
Browse files Browse the repository at this point in the history
Simplifies macro definitions and invocations by using the `paste` crate
to concatenate symbols.

TODO: implement the remaining CSR defintion macros.
  • Loading branch information
rmsyn committed Sep 18, 2024
1 parent 1887cf6 commit 629e6a9
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 197 deletions.
1 change: 1 addition & 0 deletions riscv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ critical-section-single-hart = ["critical-section/restore-state-bool"]
[dependencies]
critical-section = "1.1.2"
embedded-hal = "1.0.0"
paste = "1.0.15"
riscv-pac = { path = "../riscv-pac", version = "0.1.1", default-features = false }
Loading

0 comments on commit 629e6a9

Please sign in to comment.