Skip to content

Conversation

@romancardenas
Copy link
Contributor

This is part of the work for improving the procedural macros used in this repo.

I reduced to the minimum the amount of code in riscv-macros/src/lib.rs. The idea is leaving there only the public macros, and all the auxiliary code will be in clean modules.

Currently, riscv-macros only contain the pac_enum macro, which works in tandem with the riscv crate. Thus, the auxiliary code has been moved to the riscv module.

If the rt feature is active, pac_enum may also produce code required by riscv-rt. This additional code is now isolated in the riscv::rt module.

Next steps will be moving code from riscv-rt/macros to riscv-macros, under a new riscv_rt module.

@romancardenas romancardenas requested a review from a team as a code owner November 26, 2025 11:30
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