diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-09-26 01:14:12 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-09-26 01:17:30 +0200 |
| commit | 085ab9f617357cf94b8b4e44424850e48add2fae (patch) | |
| tree | bc30c7c23c77c4f7a30b001f16f58224bf956f57 /embassy-stm32/src/rtc/v2.rs | |
| parent | fc8c3e1e4babaa6344bdbab49a9542a29c88cc25 (diff) | |
stm32: update metapac, add L4+ to CI.
Diffstat (limited to 'embassy-stm32/src/rtc/v2.rs')
| -rw-r--r-- | embassy-stm32/src/rtc/v2.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/rtc/v2.rs b/embassy-stm32/src/rtc/v2.rs index 28380a3c0..23f6ccb0c 100644 --- a/embassy-stm32/src/rtc/v2.rs +++ b/embassy-stm32/src/rtc/v2.rs | |||
| @@ -11,11 +11,11 @@ impl super::Rtc { | |||
| 11 | pub(super) fn configure(&mut self, async_psc: u8, sync_psc: u16) { | 11 | pub(super) fn configure(&mut self, async_psc: u8, sync_psc: u16) { |
| 12 | self.write(true, |rtc| { | 12 | self.write(true, |rtc| { |
| 13 | rtc.cr().modify(|w| { | 13 | rtc.cr().modify(|w| { |
| 14 | #[cfg(not(rtc_v2f2))] | 14 | #[cfg(not(rtc_v2_f2))] |
| 15 | w.set_bypshad(true); | 15 | w.set_bypshad(true); |
| 16 | #[cfg(rtc_v2f2)] | 16 | #[cfg(rtc_v2_f2)] |
| 17 | w.set_fmt(false); | 17 | w.set_fmt(false); |
| 18 | #[cfg(not(rtc_v2f2))] | 18 | #[cfg(not(rtc_v2_f2))] |
| 19 | w.set_fmt(stm32_metapac::rtc::vals::Fmt::TWENTY_FOUR_HOUR); | 19 | w.set_fmt(stm32_metapac::rtc::vals::Fmt::TWENTY_FOUR_HOUR); |
| 20 | w.set_osel(Osel::DISABLED); | 20 | w.set_osel(Osel::DISABLED); |
| 21 | w.set_pol(Pol::HIGH); | 21 | w.set_pol(Pol::HIGH); |
| @@ -36,7 +36,7 @@ impl super::Rtc { | |||
| 36 | /// | 36 | /// |
| 37 | /// To perform a calibration when `async_prescaler` is less then 3, `sync_prescaler` | 37 | /// To perform a calibration when `async_prescaler` is less then 3, `sync_prescaler` |
| 38 | /// has to be reduced accordingly (see RM0351 Rev 9, sec 38.3.12). | 38 | /// has to be reduced accordingly (see RM0351 Rev 9, sec 38.3.12). |
| 39 | #[cfg(not(rtc_v2f2))] | 39 | #[cfg(not(rtc_v2_f2))] |
| 40 | pub fn calibrate(&mut self, mut clock_drift: f32, period: super::RtcCalibrationCyclePeriod) { | 40 | pub fn calibrate(&mut self, mut clock_drift: f32, period: super::RtcCalibrationCyclePeriod) { |
| 41 | const RTC_CALR_MIN_PPM: f32 = -487.1; | 41 | const RTC_CALR_MIN_PPM: f32 = -487.1; |
| 42 | const RTC_CALR_MAX_PPM: f32 = 488.5; | 42 | const RTC_CALR_MAX_PPM: f32 = 488.5; |
