aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc/v3.rs
diff options
context:
space:
mode:
authorChristian Enderle <[email protected]>2023-12-26 11:58:38 +0100
committerChristian Enderle <[email protected]>2023-12-26 11:58:38 +0100
commit30023c3bcccaffe4ff16d6600ba5ff80cf1ee488 (patch)
tree851cb146bcf8725d432a342e32b68e8779335e37 /embassy-stm32/src/rtc/v3.rs
parenteebfee189a592427423d3a3ad22132d59926a0e8 (diff)
Add low-power support for stm32l5
Diffstat (limited to 'embassy-stm32/src/rtc/v3.rs')
-rw-r--r--embassy-stm32/src/rtc/v3.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/embassy-stm32/src/rtc/v3.rs b/embassy-stm32/src/rtc/v3.rs
index 902776b0a..114141b64 100644
--- a/embassy-stm32/src/rtc/v3.rs
+++ b/embassy-stm32/src/rtc/v3.rs
@@ -135,6 +135,12 @@ impl sealed::Instance for crate::peripherals::RTC {
135 #[cfg(all(feature = "low-power", stm32g4))] 135 #[cfg(all(feature = "low-power", stm32g4))]
136 type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP; 136 type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP;
137 137
138 #[cfg(all(feature = "low-power", stm32l5))]
139 const EXTI_WAKEUP_LINE: usize = 17;
140
141 #[cfg(all(feature = "low-power", stm32l5))]
142 type WakeupInterrupt = crate::interrupt::typelevel::RTC;
143
138 fn read_backup_register(_rtc: &Rtc, register: usize) -> Option<u32> { 144 fn read_backup_register(_rtc: &Rtc, register: usize) -> Option<u32> {
139 #[allow(clippy::if_same_then_else)] 145 #[allow(clippy::if_same_then_else)]
140 if register < Self::BACKUP_REGISTER_COUNT { 146 if register < Self::BACKUP_REGISTER_COUNT {