diff options
| -rw-r--r-- | embassy-stm32/Cargo.toml | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/clock.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index ae92e0002..43d5250e5 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml | |||
| @@ -21,6 +21,7 @@ sdio-host = { version = "0.5.0", optional = true } | |||
| 21 | embedded-sdmmc = { git = "https://github.com/thalesfragoso/embedded-sdmmc-rs", branch = "async", optional = true } | 21 | embedded-sdmmc = { git = "https://github.com/thalesfragoso/embedded-sdmmc-rs", branch = "async", optional = true } |
| 22 | critical-section = "0.2.1" | 22 | critical-section = "0.2.1" |
| 23 | bare-metal = "1.0.0" | 23 | bare-metal = "1.0.0" |
| 24 | atomic-polyfill = "0.1.2" | ||
| 24 | 25 | ||
| 25 | [build-dependencies] | 26 | [build-dependencies] |
| 26 | regex = "1.4.6" | 27 | regex = "1.4.6" |
diff --git a/embassy-stm32/src/clock.rs b/embassy-stm32/src/clock.rs index b4f735efa..709a2d36c 100644 --- a/embassy-stm32/src/clock.rs +++ b/embassy-stm32/src/clock.rs | |||
| @@ -2,8 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | use core::cell::Cell; | 3 | use core::cell::Cell; |
| 4 | use core::convert::TryInto; | 4 | use core::convert::TryInto; |
| 5 | use core::sync::atomic::{compiler_fence, AtomicU32, Ordering}; | 5 | use core::sync::atomic::{compiler_fence, Ordering}; |
| 6 | 6 | ||
| 7 | use atomic_polyfill::AtomicU32; | ||
| 7 | use embassy::interrupt::InterruptExt; | 8 | use embassy::interrupt::InterruptExt; |
| 8 | use embassy::time::{Clock as EmbassyClock, TICKS_PER_SECOND}; | 9 | use embassy::time::{Clock as EmbassyClock, TICKS_PER_SECOND}; |
| 9 | 10 | ||
