stm32: fix rtc and examples

This commit is contained in:
xoviat
2023-08-06 12:06:29 -05:00
parent 28618d12a1
commit ae608cf2fa
2 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,7 @@ async fn main(_spawner: Spawner) {
let mut rtc = Rtc::new(
p.RTC,
RtcConfig::default().clock_config(embassy_stm32::rtc::RtcClockSource::LSE),
RtcConfig::default().clock_source(embassy_stm32::rtc::RtcClockSource::LSE),
);
info!("Got RTC! {:?}", now.timestamp());