diff options
Diffstat (limited to 'examples/stm32f4/src')
| -rw-r--r-- | examples/stm32f4/src/bin/sdmmc.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/stm32f4/src/bin/sdmmc.rs b/examples/stm32f4/src/bin/sdmmc.rs index 665670261..752ad57bf 100644 --- a/examples/stm32f4/src/bin/sdmmc.rs +++ b/examples/stm32f4/src/bin/sdmmc.rs | |||
| @@ -21,12 +21,17 @@ async fn main(_spawner: Spawner, p: Peripherals) -> ! { | |||
| 21 | 21 | ||
| 22 | let irq = interrupt::take!(SDIO); | 22 | let irq = interrupt::take!(SDIO); |
| 23 | 23 | ||
| 24 | let mut sdmmc = Sdmmc::new( | 24 | let mut sdmmc = Sdmmc::new_4bit( |
| 25 | p.SDIO, | 25 | p.SDIO, |
| 26 | (p.PC12, p.PD2, p.PC8, p.PC9, p.PC10, p.PC11), | ||
| 27 | irq, | 26 | irq, |
| 28 | Default::default(), | ||
| 29 | p.DMA2_CH3, | 27 | p.DMA2_CH3, |
| 28 | p.PC12, | ||
| 29 | p.PD2, | ||
| 30 | p.PC8, | ||
| 31 | p.PC9, | ||
| 32 | p.PC10, | ||
| 33 | p.PC11, | ||
| 34 | Default::default(), | ||
| 30 | ); | 35 | ); |
| 31 | 36 | ||
| 32 | // Should print 400kHz for initialization | 37 | // Should print 400kHz for initialization |
