aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp
diff options
context:
space:
mode:
authorPhirks <[email protected]>2025-08-03 08:37:58 -0400
committerPhirks <[email protected]>2025-08-03 08:37:58 -0400
commit65bab430a6a64a7212f4bc83ddd92f986a06d712 (patch)
tree1ad3bd72a014461449f8852f7be4342033367fac /embassy-rp
parentfc31fa09103ad6c724201d486a419f58482cdd6c (diff)
removed the rp2040 flag from the dormant function
Diffstat (limited to 'embassy-rp')
-rw-r--r--embassy-rp/src/clocks.rs4
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")]
67use core::arch::asm; 66use core::arch::asm;
68use core::marker::PhantomData; 67use core::marker::PhantomData;
69#[cfg(feature = "rp2040")] 68#[cfg(feature = "rp2040")]
@@ -73,7 +72,6 @@ use core::sync::atomic::{AtomicU32, Ordering};
73use pac::clocks::vals::*; 72use pac::clocks::vals::*;
74 73
75use crate::gpio::{AnyPin, SealedPin}; 74use crate::gpio::{AnyPin, SealedPin};
76#[cfg(feature = "rp2040")]
77use crate::pac::common::{Reg, RW}; 75use crate::pac::common::{Reg, RW};
78use crate::{pac, reset, Peri}; 76use 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"))]
1848pub fn dormant_sleep() { 1846pub 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