Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Correct Xtensa critical sections #20

Closed
MabezDev opened this issue Jun 20, 2022 · 2 comments
Closed

Correct Xtensa critical sections #20

MabezDev opened this issue Jun 20, 2022 · 2 comments

Comments

@MabezDev
Copy link
Member

The current critical sections are wrong, see esp-rs/esp-hal#87 for more details, the TLDR is that we should not be disabling interrupts. On top of that, we should probably depend on critical_section crate to get the correct per chip implementations, instead of using interrupt::free everywhere.

@reitermarkus
Copy link

Is this closed by esp-rs/esp-hal#151?

bors bot added a commit to rust-embedded/svd2rust that referenced this issue Aug 24, 2022
651: Use `critical_section` for `Peripherals::take`. r=therealprof a=reitermarkus

- `cortex_m` rust-embedded/cortex-m#447
- `msp430` rust-embedded/msp430#13
- `riscv` rust-embedded/riscv#110
-  `xtensa_lx` esp-rs/xtensa-lx#20, esp-rs/esp-hal#151
- `mips_mcu` kiffie/pic32-rs#5


Co-authored-by: Markus Reiter <me@reitermark.us>
@MabezDev
Copy link
Member Author

Yes, thanks for the ping @reitermarkus!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants