Use Mutex and CriticalSection from bare-metal 1.0
This commit is contained in:
parent
7c06518c52
commit
2b1d7fe3ee
2 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue