Use Mutex and CriticalSection from bare-metal 1.0

This commit is contained in:
Thales Fragoso 2021-05-22 23:53:50 -03:00
parent 7c06518c52
commit 2b1d7fe3ee
2 changed files with 4 additions and 2 deletions

View file

@ -20,6 +20,7 @@ rand_core = { version = "0.6.2", optional = true }
sdio-host = { version = "0.5.0", optional = true }
embedded-sdmmc = { git = "https://github.com/thalesfragoso/embedded-sdmmc-rs", branch = "async", optional = true }
critical-section = "0.2.1"
bare-metal = "1.0.0"
[build-dependencies]
regex = "1.4.6"

View file

@ -238,7 +238,8 @@ for chip in chips.values():
f.write(f"""
pub mod interrupt {{
pub use cortex_m::interrupt::{{CriticalSection, Mutex}};
pub use bare_metal::Mutex;
pub use critical_section::CriticalSection;
pub use embassy::interrupt::{{declare, take, Interrupt}};
pub use embassy_extras::interrupt::Priority4 as Priority;