diff options
| author | xoviat <[email protected]> | 2023-08-06 12:12:18 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-08-06 12:12:18 -0500 |
| commit | b555af1c5d1016d2a99ee20a1beadb00fddbed84 (patch) | |
| tree | a631bc7e2a07236dcd402313b45017e970f05de6 | |
| parent | ae608cf2fa009556953b72f18683496c17b8dca0 (diff) | |
stm32/rtc: fix exampel
| -rw-r--r-- | examples/stm32l4/src/bin/rtc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32l4/src/bin/rtc.rs b/examples/stm32l4/src/bin/rtc.rs index d72d5ddb6..fe2aabb44 100644 --- a/examples/stm32l4/src/bin/rtc.rs +++ b/examples/stm32l4/src/bin/rtc.rs | |||
| @@ -35,7 +35,7 @@ async fn main(_spawner: Spawner) { | |||
| 35 | 35 | ||
| 36 | let mut rtc = Rtc::new( | 36 | let mut rtc = Rtc::new( |
| 37 | p.RTC, | 37 | p.RTC, |
| 38 | RtcConfig::default().clock_config(embassy_stm32::rtc::RtcClockSource::LSE), | 38 | RtcConfig::default().clock_source(embassy_stm32::rtc::RtcClockSource::LSE), |
| 39 | ); | 39 | ); |
| 40 | info!("Got RTC! {:?}", now.timestamp()); | 40 | info!("Got RTC! {:?}", now.timestamp()); |
| 41 | 41 | ||
