diff options
| author | xoviat <[email protected]> | 2023-08-29 19:44:43 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-08-29 19:44:43 -0500 |
| commit | 21681d8b4ee392ce3b4f68be76b6096abe104ad3 (patch) | |
| tree | 8634156c82d538281cd0bb7f26e5cba1729c77c9 /embassy-stm32/src | |
| parent | 989c98f316df3cde4512066e3682debb47d48161 (diff) | |
rustfmt
Diffstat (limited to 'embassy-stm32/src')
| -rw-r--r-- | embassy-stm32/src/rtc/mod.rs | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/rtc/v2.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/rtc/v3.rs | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs index 3704e4464..9db4f69c5 100644 --- a/embassy-stm32/src/rtc/mod.rs +++ b/embassy-stm32/src/rtc/mod.rs | |||
| @@ -124,6 +124,7 @@ impl Default for RtcCalibrationCyclePeriod { | |||
| 124 | 124 | ||
| 125 | impl Rtc { | 125 | impl Rtc { |
| 126 | pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self { | 126 | pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self { |
| 127 | #[cfg(any(rcc_wb, rcc_f4, rcc_f410))] | ||
| 127 | use crate::rcc::get_freqs; | 128 | use crate::rcc::get_freqs; |
| 128 | 129 | ||
| 129 | RTC::enable_peripheral_clk(); | 130 | RTC::enable_peripheral_clk(); |
diff --git a/embassy-stm32/src/rtc/v2.rs b/embassy-stm32/src/rtc/v2.rs index 63d9f09e7..482b6e75d 100644 --- a/embassy-stm32/src/rtc/v2.rs +++ b/embassy-stm32/src/rtc/v2.rs | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | use stm32_metapac::rtc::vals::{Init, Osel, Pol}; | 1 | use stm32_metapac::rtc::vals::{Init, Osel, Pol}; |
| 2 | 2 | ||
| 3 | use super::{sealed, RtcConfig}; | 3 | use super::sealed; |
| 4 | use crate::pac::rtc::Rtc; | 4 | use crate::pac::rtc::Rtc; |
| 5 | use crate::peripherals::RTC; | 5 | use crate::peripherals::RTC; |
| 6 | use crate::rtc::sealed::Instance; | 6 | use crate::rtc::sealed::Instance; |
diff --git a/embassy-stm32/src/rtc/v3.rs b/embassy-stm32/src/rtc/v3.rs index c03b1071d..a6b2655d8 100644 --- a/embassy-stm32/src/rtc/v3.rs +++ b/embassy-stm32/src/rtc/v3.rs | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | use stm32_metapac::rtc::vals::{Calp, Calw16, Calw8, Fmt, Init, Key, Osel, Pol, TampalrmPu, TampalrmType}; | 1 | use stm32_metapac::rtc::vals::{Calp, Calw16, Calw8, Fmt, Init, Key, Osel, Pol, TampalrmPu, TampalrmType}; |
| 2 | 2 | ||
| 3 | use super::{sealed, RtcCalibrationCyclePeriod, RtcConfig}; | 3 | use super::{sealed, RtcCalibrationCyclePeriod}; |
| 4 | use crate::pac::rtc::Rtc; | 4 | use crate::pac::rtc::Rtc; |
| 5 | use crate::peripherals::RTC; | 5 | use crate::peripherals::RTC; |
| 6 | use crate::rtc::sealed::Instance; | 6 | use crate::rtc::sealed::Instance; |
