From 5e74926907b48b7f778de2ff4dfd6f1fd6e24dcb Mon Sep 17 00:00:00 2001 From: Mathias Date: Mon, 13 Feb 2023 15:12:33 +0100 Subject: [PATCH] feature-gate variants without vals defined --- embassy-stm32/src/rtc/v3.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/embassy-stm32/src/rtc/v3.rs b/embassy-stm32/src/rtc/v3.rs index eba67c28..6998c48c 100644 --- a/embassy-stm32/src/rtc/v3.rs +++ b/embassy-stm32/src/rtc/v3.rs @@ -15,7 +15,12 @@ impl<'d, T: Instance> super::Rtc<'d, T> { while !crate::pac::PWR.cr1().read().dbp() {} } - #[cfg(not(feature = "stm32g0c1ve"))] + #[cfg(not(any( + feature = "stm32g0c1ve", + feature = "stm32g491re", + feature = "stm32u585zi", + feature = "stm32g473cc" + )))] { crate::pac::PWR .cr1() @@ -32,7 +37,11 @@ impl<'d, T: Instance> super::Rtc<'d, T> { feature = "stm32wle5ub", feature = "stm32g0c1ve", feature = "stm32wl55jc-cm4", - feature = "stm32wl55uc-cm4" + feature = "stm32wl55uc-cm4", + feature = "stm32g491re", + feature = "stm32g473cc", + feature = "stm32u585zi", + feature = "stm32wle5jb" )))] let config_rtcsel = stm32_metapac::rtc::vals::Rtcsel(config_rtcsel); #[cfg(feature = "stm32g0c1ve")]