diff options
| author | liebman <[email protected]> | 2025-12-18 15:04:45 -0800 |
|---|---|---|
| committer | liebman <[email protected]> | 2025-12-19 07:55:34 -0800 |
| commit | 9008e4ca79a8cea093484f09d02c9ca67e7e2b1f (patch) | |
| tree | 2ef61e05b4d687c8451253b930efae37c309e489 /embassy-stm32/src/rtc | |
| parent | 905bdfa7662c2ac5d2dfc81219c9704955473253 (diff) | |
low-power: stm32wl5x
Diffstat (limited to 'embassy-stm32/src/rtc')
| -rw-r--r-- | embassy-stm32/src/rtc/low_power.rs | 4 | ||||
| -rw-r--r-- | embassy-stm32/src/rtc/v3.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/rtc/low_power.rs b/embassy-stm32/src/rtc/low_power.rs index cd5cea081..e15eddc22 100644 --- a/embassy-stm32/src/rtc/low_power.rs +++ b/embassy-stm32/src/rtc/low_power.rs | |||
| @@ -114,11 +114,11 @@ impl Rtc { | |||
| 114 | use crate::pac::EXTI; | 114 | use crate::pac::EXTI; |
| 115 | EXTI.rtsr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true)); | 115 | EXTI.rtsr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true)); |
| 116 | 116 | ||
| 117 | #[cfg(not(stm32wb))] | 117 | #[cfg(not(any(stm32wb, stm32wl5x)))] |
| 118 | { | 118 | { |
| 119 | EXTI.imr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true)); | 119 | EXTI.imr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true)); |
| 120 | } | 120 | } |
| 121 | #[cfg(stm32wb)] | 121 | #[cfg(any(stm32wb, stm32wl5x))] |
| 122 | { | 122 | { |
| 123 | EXTI.cpu(0).imr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true)); | 123 | EXTI.cpu(0).imr(0).modify(|w| w.set_line(RTC::EXTI_WAKEUP_LINE, true)); |
| 124 | } | 124 | } |
diff --git a/embassy-stm32/src/rtc/v3.rs b/embassy-stm32/src/rtc/v3.rs index f7ebea73e..49c9778df 100644 --- a/embassy-stm32/src/rtc/v3.rs +++ b/embassy-stm32/src/rtc/v3.rs | |||
| @@ -131,7 +131,7 @@ impl SealedInstance for crate::peripherals::RTC { | |||
| 131 | 131 | ||
| 132 | #[cfg(feature = "low-power")] | 132 | #[cfg(feature = "low-power")] |
| 133 | cfg_if::cfg_if!( | 133 | cfg_if::cfg_if!( |
| 134 | if #[cfg(any(stm32g4, stm32wlex))] { | 134 | if #[cfg(any(stm32g4, stm32wl))] { |
| 135 | const EXTI_WAKEUP_LINE: usize = 20; | 135 | const EXTI_WAKEUP_LINE: usize = 20; |
| 136 | } else if #[cfg(stm32g0)] { | 136 | } else if #[cfg(stm32g0)] { |
| 137 | const EXTI_WAKEUP_LINE: usize = 19; | 137 | const EXTI_WAKEUP_LINE: usize = 19; |
| @@ -142,7 +142,7 @@ impl SealedInstance for crate::peripherals::RTC { | |||
| 142 | 142 | ||
| 143 | #[cfg(feature = "low-power")] | 143 | #[cfg(feature = "low-power")] |
| 144 | cfg_if::cfg_if!( | 144 | cfg_if::cfg_if!( |
| 145 | if #[cfg(any(stm32g4, stm32wlex))] { | 145 | if #[cfg(any(stm32g4, stm32wl))] { |
| 146 | type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP; | 146 | type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP; |
| 147 | } else if #[cfg(any(stm32g0, stm32u0))] { | 147 | } else if #[cfg(any(stm32g0, stm32u0))] { |
| 148 | type WakeupInterrupt = crate::interrupt::typelevel::RTC_TAMP; | 148 | type WakeupInterrupt = crate::interrupt::typelevel::RTC_TAMP; |
