stm32/rtc: use rccperi enable

This commit is contained in:
xoviat
2023-09-25 16:26:29 -05:00
parent 481d2998ef
commit 04b09a2acb
5 changed files with 9 additions and 38 deletions

View File

@ -88,11 +88,6 @@ impl BackupDomain {
))]
#[allow(dead_code, unused_variables)]
pub fn configure_ls(clock_source: RtcClockSource, lsi: bool, lse: Option<LseDrive>) {
if lsi || lse.is_some() {
use crate::rtc::sealed::Instance;
crate::peripherals::RTC::enable_peripheral_clk();
}
if lsi {
#[cfg(rtc_v3u5)]
let csr = crate::pac::RCC.bdcr();