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

Remove unnecessary rt crate dependencies #391

Merged
merged 2 commits into from
Feb 10, 2023

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Feb 9, 2023

Fixes #382

  • remove dependencies to rt crates and riscv / xtensa-lx from the chip specific HALs, re-export from esp-hal-common
  • re-export riscv / xtensa-lx in the chip specific HALs
  • entry is re-exported and added to the prelude
  • atomic emulation is always included by the HAL for ESP32-S2 (like it's already the case for ESP32-C2 / ESP32-C3)

This PR looks huge but most of the changes are in the examples.

Nice side-effect: fixes #197

This has some potential for bikeshedding about some names (e.g. trapframe::TrapFrame) - I tried to choose the names carefully but don't have strong opinions about them

BEFORE merging this

  • publish a new xtensa-lx-rt version, probably also xtensa-lx
  • publish the PACs (with removed rt dependencies)
  • optionally wait for a new published esp-backtrace

This also bumps the versions of all contained crates

@bjoernQ bjoernQ force-pushed the remove-unnecessary-rt-crate-deps branch from 637a1b7 to 5b562da Compare February 9, 2023 16:40
@jessebraham
Copy link
Member

jessebraham commented Feb 9, 2023

I will get new PACs published today

New PACs are published.

@bjoernQ bjoernQ marked this pull request as ready for review February 10, 2023 14:08
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

Big diff, but I looked the the more intricate changes like handling atomic emu in s2 hal and that all looks fine.

LGTM!

@@ -35,20 +33,3 @@ fn main() -> ! {

loop {}
}

#[xtensa_lx_rt::exception]
Copy link
Member

Choose a reason for hiding this comment

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

Oh wow, this is prehistoric 😃 - good to get rid of this!

Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

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

Lots to take in here but I think things are looking pretty good, sorry for the delay in reviewing this (turns out I had started and forgot to finish 😅).

I have a few nitpicks but honestly they're so minor I won't even bring them up, they can be dealt with some other time, so LGTM. Thanks for all this!

@jessebraham jessebraham merged commit 4e88e48 into esp-rs:main Feb 10, 2023
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.

Remove unnecessary rt-crate dependencies Improve easy-of-use for #[interrupt] macro on ESP32-C3
3 participants