diff options
| -rw-r--r-- | embassy-rp/src/clocks.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/embassy-rp/src/clocks.rs b/embassy-rp/src/clocks.rs index d79bffab3..2eddc0bcc 100644 --- a/embassy-rp/src/clocks.rs +++ b/embassy-rp/src/clocks.rs | |||
| @@ -63,7 +63,6 @@ | |||
| 63 | //! // Set other parameters as needed... | 63 | //! // Set other parameters as needed... |
| 64 | //! ``` | 64 | //! ``` |
| 65 | 65 | ||
| 66 | #[cfg(feature = "rp2040")] | ||
| 67 | use core::arch::asm; | 66 | use core::arch::asm; |
| 68 | use core::marker::PhantomData; | 67 | use core::marker::PhantomData; |
| 69 | #[cfg(feature = "rp2040")] | 68 | #[cfg(feature = "rp2040")] |
| @@ -73,7 +72,6 @@ use core::sync::atomic::{AtomicU32, Ordering}; | |||
| 73 | use pac::clocks::vals::*; | 72 | use pac::clocks::vals::*; |
| 74 | 73 | ||
| 75 | use crate::gpio::{AnyPin, SealedPin}; | 74 | use crate::gpio::{AnyPin, SealedPin}; |
| 76 | #[cfg(feature = "rp2040")] | ||
| 77 | use crate::pac::common::{Reg, RW}; | 75 | use crate::pac::common::{Reg, RW}; |
| 78 | use crate::{pac, reset, Peri}; | 76 | use crate::{pac, reset, Peri}; |
| 79 | 77 | ||
| @@ -1844,7 +1842,7 @@ impl rand_core_09::CryptoRng for RoscRng {} | |||
| 1844 | /// and can only be exited through resets, dormant-wake GPIO interrupts, | 1842 | /// and can only be exited through resets, dormant-wake GPIO interrupts, |
| 1845 | /// and RTC interrupts. If RTC is clocked from an internal clock source | 1843 | /// and RTC interrupts. If RTC is clocked from an internal clock source |
| 1846 | /// it will be stopped and not function as a wakeup source. | 1844 | /// it will be stopped and not function as a wakeup source. |
| 1847 | #[cfg(all(target_arch = "arm", feature = "rp2040"))] | 1845 | #[cfg(all(target_arch = "arm"))] |
| 1848 | pub fn dormant_sleep() { | 1846 | pub fn dormant_sleep() { |
| 1849 | struct Set<T: Copy, F: Fn()>(Reg<T, RW>, T, F); | 1847 | struct Set<T: Copy, F: Fn()>(Reg<T, RW>, T, F); |
| 1850 | 1848 | ||
