aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-05-30 11:50:40 +0000
committerGitHub <[email protected]>2024-05-30 11:50:40 +0000
commit39c5a6c3f7fe294bc7c5e6beaa0eac67399e62f9 (patch)
tree8ad437fee738bd7a76382cb5835739539618b179 /embassy-stm32/src/rtc
parent7bc71a82623c706c294e25a7b97b385f77170e43 (diff)
parent081afca3f065dfd91e157d7c9a9477e2d914c99d (diff)
Merge pull request #3002 from honzasp/rcc-info
stm32/rcc: replace generated enable/disable code with runtime info
Diffstat (limited to 'embassy-stm32/src/rtc')
-rw-r--r--embassy-stm32/src/rtc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs
index cb9c10676..a7f70b153 100644
--- a/embassy-stm32/src/rtc/mod.rs
+++ b/embassy-stm32/src/rtc/mod.rs
@@ -142,7 +142,7 @@ impl Rtc {
142 /// Create a new RTC instance. 142 /// Create a new RTC instance.
143 pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self { 143 pub fn new(_rtc: impl Peripheral<P = RTC>, rtc_config: RtcConfig) -> Self {
144 #[cfg(not(any(stm32l0, stm32f3, stm32l1, stm32f0, stm32f2)))] 144 #[cfg(not(any(stm32l0, stm32f3, stm32l1, stm32f0, stm32f2)))]
145 <RTC as crate::rcc::SealedRccPeripheral>::enable_and_reset(); 145 crate::rcc::enable_and_reset::<RTC>();
146 146
147 let mut this = Self { 147 let mut this = Self {
148 #[cfg(feature = "low-power")] 148 #[cfg(feature = "low-power")]