diff options
| -rwxr-xr-x | ci.sh | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/rtc/v3.rs | 7 |
2 files changed, 2 insertions, 6 deletions
| @@ -71,6 +71,7 @@ cargo batch \ | |||
| 71 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32h755zi-cm7,defmt,exti,time-driver-any,unstable-traits \ | 71 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32h755zi-cm7,defmt,exti,time-driver-any,unstable-traits \ |
| 72 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32h7b3ai,defmt,exti,time-driver-any,unstable-traits \ | 72 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32h7b3ai,defmt,exti,time-driver-any,unstable-traits \ |
| 73 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32l476vg,defmt,exti,time-driver-any,unstable-traits \ | 73 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32l476vg,defmt,exti,time-driver-any,unstable-traits \ |
| 74 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32l422cb,defmt,exti,time-driver-any,unstable-traits \ | ||
| 74 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32wb15cc,defmt,exti,time-driver-any,unstable-traits \ | 75 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features nightly,stm32wb15cc,defmt,exti,time-driver-any,unstable-traits \ |
| 75 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features nightly,stm32l072cz,defmt,exti,time-driver-any,unstable-traits \ | 76 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features nightly,stm32l072cz,defmt,exti,time-driver-any,unstable-traits \ |
| 76 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features nightly,stm32l041f6,defmt,exti,time-driver-any,unstable-traits \ | 77 | --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv6m-none-eabi --features nightly,stm32l041f6,defmt,exti,time-driver-any,unstable-traits \ |
diff --git a/embassy-stm32/src/rtc/v3.rs b/embassy-stm32/src/rtc/v3.rs index 546fe88c7..24f6496a6 100644 --- a/embassy-stm32/src/rtc/v3.rs +++ b/embassy-stm32/src/rtc/v3.rs | |||
| @@ -9,11 +9,6 @@ impl<'d, T: Instance> super::Rtc<'d, T> { | |||
| 9 | pub(super) fn apply_config(&mut self, rtc_config: RtcConfig) { | 9 | pub(super) fn apply_config(&mut self, rtc_config: RtcConfig) { |
| 10 | // Unlock the backup domain | 10 | // Unlock the backup domain |
| 11 | unsafe { | 11 | unsafe { |
| 12 | #[cfg(any(rtc_v3u5, rcc_g0, rcc_g4))] | ||
| 13 | use crate::pac::rcc::vals::Rtcsel; | ||
| 14 | #[cfg(not(any(rtc_v3u5, rcc_g0, rcc_g4, rcc_wl5, rcc_wle)))] | ||
| 15 | use crate::pac::rtc::vals::Rtcsel; | ||
| 16 | |||
| 17 | #[cfg(not(any(rtc_v3u5, rcc_wl5, rcc_wle)))] | 12 | #[cfg(not(any(rtc_v3u5, rcc_wl5, rcc_wle)))] |
| 18 | { | 13 | { |
| 19 | crate::pac::PWR.cr1().modify(|w| w.set_dbp(true)); | 14 | crate::pac::PWR.cr1().modify(|w| w.set_dbp(true)); |
| @@ -32,7 +27,7 @@ impl<'d, T: Instance> super::Rtc<'d, T> { | |||
| 32 | 27 | ||
| 33 | let config_rtcsel = rtc_config.clock_config as u8; | 28 | let config_rtcsel = rtc_config.clock_config as u8; |
| 34 | #[cfg(not(any(rcc_wl5, rcc_wle)))] | 29 | #[cfg(not(any(rcc_wl5, rcc_wle)))] |
| 35 | let config_rtcsel = Rtcsel(config_rtcsel); | 30 | let config_rtcsel = crate::pac::rcc::vals::Rtcsel(config_rtcsel); |
| 36 | 31 | ||
| 37 | if !reg.rtcen() || reg.rtcsel() != config_rtcsel { | 32 | if !reg.rtcen() || reg.rtcsel() != config_rtcsel { |
| 38 | crate::pac::RCC.bdcr().modify(|w| w.set_bdrst(true)); | 33 | crate::pac::RCC.bdcr().modify(|w| w.set_bdrst(true)); |
