aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc/v2.rs
diff options
context:
space:
mode:
authorTobias Naumann <[email protected]>2024-07-26 14:25:10 +0200
committerTobias Naumann <[email protected]>2024-07-26 14:25:10 +0200
commit60aa9c15a8a246d1d099beec8a1e3cbf08f52a8f (patch)
treef5553b5da9d3a86b5be41b15e541d0231459b444 /embassy-stm32/src/rtc/v2.rs
parentb88dc137e766d89eca5472bfa6f3bb78cfd1f7e0 (diff)
Implement low-power feature for stm32l4 MCUs
Diffstat (limited to 'embassy-stm32/src/rtc/v2.rs')
-rw-r--r--embassy-stm32/src/rtc/v2.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/embassy-stm32/src/rtc/v2.rs b/embassy-stm32/src/rtc/v2.rs
index cdc1cb299..5d9025bbe 100644
--- a/embassy-stm32/src/rtc/v2.rs
+++ b/embassy-stm32/src/rtc/v2.rs
@@ -131,10 +131,13 @@ impl SealedInstance for crate::peripherals::RTC {
131 #[cfg(all(feature = "low-power", stm32f4))] 131 #[cfg(all(feature = "low-power", stm32f4))]
132 const EXTI_WAKEUP_LINE: usize = 22; 132 const EXTI_WAKEUP_LINE: usize = 22;
133 133
134 #[cfg(all(feature = "low-power", stm32l4))]
135 const EXTI_WAKEUP_LINE: usize = 20;
136
134 #[cfg(all(feature = "low-power", stm32l0))] 137 #[cfg(all(feature = "low-power", stm32l0))]
135 const EXTI_WAKEUP_LINE: usize = 20; 138 const EXTI_WAKEUP_LINE: usize = 20;
136 139
137 #[cfg(all(feature = "low-power", stm32f4))] 140 #[cfg(all(feature = "low-power", any(stm32f4, stm32l4)))]
138 type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP; 141 type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP;
139 142
140 #[cfg(all(feature = "low-power", stm32l0))] 143 #[cfg(all(feature = "low-power", stm32l0))]