Fix stm32wl55jc-cm4 RTC

This commit is contained in:
Mathias 2022-10-11 09:19:47 +02:00
parent 62c0b18f10
commit 79cee74151

View File

@ -28,7 +28,12 @@ impl<'d, T: Instance> super::Rtc<'d, T> {
let config_rtcsel = rtc_config.clock_config as u8; let config_rtcsel = rtc_config.clock_config as u8;
#[cfg(rtc_v3)] #[cfg(rtc_v3)]
#[cfg(not(any(feature = "stm32wl54jc-cm0p", feature = "stm32wle5ub", feature = "stm32g0c1ve")))] #[cfg(not(any(
feature = "stm32wl54jc-cm0p",
feature = "stm32wle5ub",
feature = "stm32g0c1ve",
feature = "stm32wl55jc-cm4"
)))]
let config_rtcsel = stm32_metapac::rtc::vals::Rtcsel(config_rtcsel); let config_rtcsel = stm32_metapac::rtc::vals::Rtcsel(config_rtcsel);
#[cfg(feature = "stm32g0c1ve")] #[cfg(feature = "stm32g0c1ve")]
let config_rtcsel = stm32_metapac::rcc::vals::Rtcsel(config_rtcsel); let config_rtcsel = stm32_metapac::rcc::vals::Rtcsel(config_rtcsel);