Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update crates to work with riscv 0.12 and riscv-rt 0.13 #38

Closed
wants to merge 3 commits into from

Conversation

romancardenas
Copy link
Contributor

After a few months of hard work, looks like we can start updating PACs to the new RISC-V ecosystem. The main changes are:

  • New features in svd2rust to define interrupts, exceptions, priorities, and HART IDs
  • Standard peripheral implementations from riscv-peripheral crate

While the new svd2rust is not still published (see this PR), it is already usable, as shown here.

@romancardenas romancardenas force-pushed the riscv0.12 branch 2 times, most recently from d34abe1 to f63ce8b Compare October 22, 2024 15:12
- Apply clippy changes
- Use `portable-atomic` with `zaamo` feature to use native `amo*` operations.
- Official target is now `riscv32imc-unknown-none-elf`, as it does not fully support the A extension.
- Update `e310x` dependency and adapt code
- Bump MSRV to 1.72.0 to ensure a correct behavior of portable-atomic
- Bump MSRV to 1.76.0 to ensure a correct behavior of portable-atomic
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support for zaamo in portable-atomic is currently available in Rust 1.72+, is it due to another problem with portable-atomic that you had to raise it to 1.76?

(By the way, if needed, we can support pre-1.72 in the same way as taiki-e/portable-atomic#194.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, there is an error in that changelog! We need 1.76 for riscv-peripheral, as it provides implementations of embedded-hal-async. I will update it soon

@romancardenas
Copy link
Contributor Author

I'm closing this PR, as #37 now uses svd2rust 0.34.0 and the HAL is almost finished

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.

2 participants