Merge pull request #1940 from luveti/patch-1

stm32: fix rtc example
This commit is contained in:
Dario Nieuwenhuis 2023-09-24 09:30:08 +00:00 committed by GitHub
commit 65d36f9f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ use {defmt_rtt as _, panic_probe as _};
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
let mut config = Config::default();
config.rcc.lsi = true;
config.rcc.rtc = Option::Some(RtcClockSource::LSI);
let p = embassy_stm32::init(config);