diff options
| author | Mathias <[email protected]> | 2023-02-13 15:12:33 +0100 |
|---|---|---|
| committer | Mathias <[email protected]> | 2023-02-13 15:46:49 +0100 |
| commit | 5e74926907b48b7f778de2ff4dfd6f1fd6e24dcb (patch) | |
| tree | 3dc6cf3029eae1e8277ab95200997bdff08bec69 /embassy-stm32/src | |
| parent | 218b44652c149f895919b606a660b6eff30e8177 (diff) | |
feature-gate variants without vals defined
Diffstat (limited to 'embassy-stm32/src')
| -rw-r--r-- | embassy-stm32/src/rtc/v3.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/embassy-stm32/src/rtc/v3.rs b/embassy-stm32/src/rtc/v3.rs index eba67c28f..6998c48c2 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> { | |||
| 15 | while !crate::pac::PWR.cr1().read().dbp() {} | 15 | while !crate::pac::PWR.cr1().read().dbp() {} |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | #[cfg(not(feature = "stm32g0c1ve"))] | 18 | #[cfg(not(any( |
| 19 | feature = "stm32g0c1ve", | ||
| 20 | feature = "stm32g491re", | ||
| 21 | feature = "stm32u585zi", | ||
| 22 | feature = "stm32g473cc" | ||
| 23 | )))] | ||
| 19 | { | 24 | { |
| 20 | crate::pac::PWR | 25 | crate::pac::PWR |
| 21 | .cr1() | 26 | .cr1() |
| @@ -32,7 +37,11 @@ impl<'d, T: Instance> super::Rtc<'d, T> { | |||
| 32 | feature = "stm32wle5ub", | 37 | feature = "stm32wle5ub", |
| 33 | feature = "stm32g0c1ve", | 38 | feature = "stm32g0c1ve", |
| 34 | feature = "stm32wl55jc-cm4", | 39 | feature = "stm32wl55jc-cm4", |
| 35 | feature = "stm32wl55uc-cm4" | 40 | feature = "stm32wl55uc-cm4", |
| 41 | feature = "stm32g491re", | ||
| 42 | feature = "stm32g473cc", | ||
| 43 | feature = "stm32u585zi", | ||
| 44 | feature = "stm32wle5jb" | ||
| 36 | )))] | 45 | )))] |
| 37 | let config_rtcsel = stm32_metapac::rtc::vals::Rtcsel(config_rtcsel); | 46 | let config_rtcsel = stm32_metapac::rtc::vals::Rtcsel(config_rtcsel); |
| 38 | #[cfg(feature = "stm32g0c1ve")] | 47 | #[cfg(feature = "stm32g0c1ve")] |
