diff options
| author | kalkyl <[email protected]> | 2024-05-11 16:09:20 +0200 |
|---|---|---|
| committer | kalkyl <[email protected]> | 2024-05-11 16:09:20 +0200 |
| commit | 17d4f0173cc7a3078112a0dca6a4c0de39373b13 (patch) | |
| tree | 30824caa734b10ea98ee733d5ba40cdd65eb5eed /examples | |
| parent | fd5412ffc50384c5e5e32c1a2bc499b558a99e8b (diff) | |
spinlock + loop at end to allow defmt to flush properly
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/rp/src/bin/spi_sdmmc.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/rp/src/bin/spi_sdmmc.rs b/examples/rp/src/bin/spi_sdmmc.rs index 0912490d8..4cbc82f7b 100644 --- a/examples/rp/src/bin/spi_sdmmc.rs +++ b/examples/rp/src/bin/spi_sdmmc.rs | |||
| @@ -33,6 +33,7 @@ impl embedded_sdmmc::TimeSource for DummyTimesource { | |||
| 33 | 33 | ||
| 34 | #[embassy_executor::main] | 34 | #[embassy_executor::main] |
| 35 | async fn main(_spawner: Spawner) { | 35 | async fn main(_spawner: Spawner) { |
| 36 | embassy_rp::pac::SIO.spinlock(31).write_value(1); | ||
| 36 | let p = embassy_rp::init(Default::default()); | 37 | let p = embassy_rp::init(Default::default()); |
| 37 | 38 | ||
| 38 | // SPI clock needs to be running at <= 400kHz during initialization | 39 | // SPI clock needs to be running at <= 400kHz during initialization |
| @@ -77,4 +78,6 @@ async fn main(_spawner: Spawner) { | |||
| 77 | info!("{:a}", buf[..n]); | 78 | info!("{:a}", buf[..n]); |
| 78 | } | 79 | } |
| 79 | } | 80 | } |
| 81 | |||
| 82 | loop {} | ||
| 80 | } | 83 | } |
