STM32 Clock: Use atomic-polyfill

This commit is contained in:
Thales Fragoso 2021-05-23 17:22:07 -03:00
parent 66f232574a
commit 9c5d4d9f8a
2 changed files with 3 additions and 1 deletions

View File

@ -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 }
critical-section = "0.2.1"
bare-metal = "1.0.0"
atomic-polyfill = "0.1.2"
[build-dependencies]
regex = "1.4.6"

View File

@ -2,8 +2,9 @@
use core::cell::Cell;
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::time::{Clock as EmbassyClock, TICKS_PER_SECOND};