Use Mutex and CriticalSection from bare-metal 1.0
This commit is contained in:
parent
7c06518c52
commit
2b1d7fe3ee
@ -20,6 +20,7 @@ rand_core = { version = "0.6.2", optional = true }
|
|||||||
sdio-host = { version = "0.5.0", optional = true }
|
sdio-host = { version = "0.5.0", optional = true }
|
||||||
embedded-sdmmc = { git = "https://github.com/thalesfragoso/embedded-sdmmc-rs", branch = "async", optional = true }
|
embedded-sdmmc = { git = "https://github.com/thalesfragoso/embedded-sdmmc-rs", branch = "async", optional = true }
|
||||||
critical-section = "0.2.1"
|
critical-section = "0.2.1"
|
||||||
|
bare-metal = "1.0.0"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
regex = "1.4.6"
|
regex = "1.4.6"
|
||||||
|
@ -238,7 +238,8 @@ for chip in chips.values():
|
|||||||
|
|
||||||
f.write(f"""
|
f.write(f"""
|
||||||
pub mod interrupt {{
|
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::interrupt::{{declare, take, Interrupt}};
|
||||||
pub use embassy_extras::interrupt::Priority4 as Priority;
|
pub use embassy_extras::interrupt::Priority4 as Priority;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user