spinlock + loop at end to allow defmt to flush properly

This commit is contained in:
kalkyl 2024-05-11 16:09:20 +02:00
parent fd5412ffc5
commit 17d4f0173c

View File

@ -33,6 +33,7 @@ impl embedded_sdmmc::TimeSource for DummyTimesource {
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
embassy_rp::pac::SIO.spinlock(31).write_value(1);
let p = embassy_rp::init(Default::default());
// SPI clock needs to be running at <= 400kHz during initialization
@ -77,4 +78,6 @@ async fn main(_spawner: Spawner) {
info!("{:a}", buf[..n]);
}
}
loop {}
}