rtc: reorganize low-power SealedInstance

This commit is contained in:
Christian Enderle 2024-11-21 19:44:01 +01:00
parent 48fd80919a
commit 29934237a5

View File

@ -133,14 +133,20 @@ impl SealedInstance for crate::peripherals::RTC {
cfg_if::cfg_if!(
if #[cfg(stm32g4)] {
const EXTI_WAKEUP_LINE: usize = 20;
type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP;
} else if #[cfg(stm32g0)] {
const EXTI_WAKEUP_LINE: usize = 19;
type WakeupInterrupt = crate::interrupt::typelevel::RTC_TAMP;
} else if #[cfg(any(stm32l5, stm32h5))] {
const EXTI_WAKEUP_LINE: usize = 17;
type WakeupInterrupt = crate::interrupt::typelevel::RTC;
} else if #[cfg(stm32u5)] {
}
);
#[cfg(feature = "low-power")]
cfg_if::cfg_if!(
if #[cfg(stm32g4)] {
type WakeupInterrupt = crate::interrupt::typelevel::RTC_WKUP;
} else if #[cfg(any(stm32g0))] {
type WakeupInterrupt = crate::interrupt::typelevel::RTC_TAMP;
} else if #[cfg(any(stm32l5, stm32h5, stm32u5))] {
type WakeupInterrupt = crate::interrupt::typelevel::RTC;
}
);