mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 21:01:06 +00:00
removed the rp2040 flag from the dormant function
This commit is contained in:
parent
fc31fa0910
commit
65bab430a6
@ -63,7 +63,6 @@
|
|||||||
//! // Set other parameters as needed...
|
//! // Set other parameters as needed...
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
#[cfg(feature = "rp2040")]
|
|
||||||
use core::arch::asm;
|
use core::arch::asm;
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
#[cfg(feature = "rp2040")]
|
#[cfg(feature = "rp2040")]
|
||||||
@ -73,7 +72,6 @@ use core::sync::atomic::{AtomicU32, Ordering};
|
|||||||
use pac::clocks::vals::*;
|
use pac::clocks::vals::*;
|
||||||
|
|
||||||
use crate::gpio::{AnyPin, SealedPin};
|
use crate::gpio::{AnyPin, SealedPin};
|
||||||
#[cfg(feature = "rp2040")]
|
|
||||||
use crate::pac::common::{Reg, RW};
|
use crate::pac::common::{Reg, RW};
|
||||||
use crate::{pac, reset, Peri};
|
use crate::{pac, reset, Peri};
|
||||||
|
|
||||||
@ -1844,7 +1842,7 @@ impl rand_core_09::CryptoRng for RoscRng {}
|
|||||||
/// and can only be exited through resets, dormant-wake GPIO interrupts,
|
/// and can only be exited through resets, dormant-wake GPIO interrupts,
|
||||||
/// and RTC interrupts. If RTC is clocked from an internal clock source
|
/// and RTC interrupts. If RTC is clocked from an internal clock source
|
||||||
/// it will be stopped and not function as a wakeup source.
|
/// it will be stopped and not function as a wakeup source.
|
||||||
#[cfg(all(target_arch = "arm", feature = "rp2040"))]
|
#[cfg(all(target_arch = "arm"))]
|
||||||
pub fn dormant_sleep() {
|
pub fn dormant_sleep() {
|
||||||
struct Set<T: Copy, F: Fn()>(Reg<T, RW>, T, F);
|
struct Set<T: Copy, F: Fn()>(Reg<T, RW>, T, F);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user