mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
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]
|
||||
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 {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user