STM32 Clock: Use atomic-polyfill
This commit is contained in:
parent
66f232574a
commit
9c5d4d9f8a
@ -21,6 +21,7 @@ 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"
|
bare-metal = "1.0.0"
|
||||||
|
atomic-polyfill = "0.1.2"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
regex = "1.4.6"
|
regex = "1.4.6"
|
||||||
|
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
use core::cell::Cell;
|
use core::cell::Cell;
|
||||||
use core::convert::TryInto;
|
use core::convert::TryInto;
|
||||||
use core::sync::atomic::{compiler_fence, AtomicU32, Ordering};
|
use core::sync::atomic::{compiler_fence, Ordering};
|
||||||
|
|
||||||
|
use atomic_polyfill::AtomicU32;
|
||||||
use embassy::interrupt::InterruptExt;
|
use embassy::interrupt::InterruptExt;
|
||||||
use embassy::time::{Clock as EmbassyClock, TICKS_PER_SECOND};
|
use embassy::time::{Clock as EmbassyClock, TICKS_PER_SECOND};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user