stm32: fix rtc example

lsi must be enabled otherwise a assertion fails
This commit is contained in:
luveti 2023-09-24 01:11:58 -04:00 committed by GitHub
parent 1e80fd81f7
commit 347ff18644
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] #[embassy_executor::main]
async fn main(_spawner: Spawner) { async fn main(_spawner: Spawner) {
let mut config = Config::default(); let mut config = Config::default();
config.rcc.lsi = true;
config.rcc.rtc = Option::Some(RtcClockSource::LSI); config.rcc.rtc = Option::Some(RtcClockSource::LSI);
let p = embassy_stm32::init(config); let p = embassy_stm32::init(config);