spinlock + loop at end to allow defmt to flush properly
This commit is contained in:
parent
fd5412ffc5
commit
17d4f0173c
@ -33,6 +33,7 @@ impl embedded_sdmmc::TimeSource for DummyTimesource {
|
|||||||
|
|
||||||
#[embassy_executor::main]
|
#[embassy_executor::main]
|
||||||
async fn main(_spawner: Spawner) {
|
async fn main(_spawner: Spawner) {
|
||||||
|
embassy_rp::pac::SIO.spinlock(31).write_value(1);
|
||||||
let p = embassy_rp::init(Default::default());
|
let p = embassy_rp::init(Default::default());
|
||||||
|
|
||||||
// SPI clock needs to be running at <= 400kHz during initialization
|
// SPI clock needs to be running at <= 400kHz during initialization
|
||||||
@ -77,4 +78,6 @@ async fn main(_spawner: Spawner) {
|
|||||||
info!("{:a}", buf[..n]);
|
info!("{:a}", buf[..n]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loop {}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user