diff options
| author | Bob McWhirter <[email protected]> | 2021-07-21 16:48:42 -0400 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-07-23 13:22:39 -0400 |
| commit | a63847944f96c2b083bedf6958824a1435161bcf (patch) | |
| tree | 9a9d65d39746e6bef02d9d45cc08e9aeb55ed4c7 | |
| parent | b07325b47600283113ffb8aa99c50080ca092abb (diff) | |
Reset the examples to the original F4 flavor.
| -rw-r--r-- | examples/stm32f4/.cargo/config.toml | 3 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/spi_dma.rs | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/examples/stm32f4/.cargo/config.toml b/examples/stm32f4/.cargo/config.toml index f7173a194..8704a9ba5 100644 --- a/examples/stm32f4/.cargo/config.toml +++ b/examples/stm32f4/.cargo/config.toml | |||
| @@ -3,8 +3,7 @@ build-std = ["core"] | |||
| 3 | 3 | ||
| 4 | [target.'cfg(all(target_arch = "arm", target_os = "none"))'] | 4 | [target.'cfg(all(target_arch = "arm", target_os = "none"))'] |
| 5 | # replace STM32F429ZITx with your chip as listed in `probe-run --list-chips` | 5 | # replace STM32F429ZITx with your chip as listed in `probe-run --list-chips` |
| 6 | #runner = "probe-run --chip STM32F429ZITx" | 6 | runner = "probe-run --chip STM32F429ZITx" |
| 7 | runner = "probe-run --chip STM32F401RE" | ||
| 8 | 7 | ||
| 9 | rustflags = [ | 8 | rustflags = [ |
| 10 | # LLD (shipped with the Rust toolchain) is used as the default linker | 9 | # LLD (shipped with the Rust toolchain) is used as the default linker |
diff --git a/examples/stm32f4/src/bin/spi_dma.rs b/examples/stm32f4/src/bin/spi_dma.rs index db6b69c85..10a419fda 100644 --- a/examples/stm32f4/src/bin/spi_dma.rs +++ b/examples/stm32f4/src/bin/spi_dma.rs | |||
| @@ -28,8 +28,8 @@ async fn main_task() { | |||
| 28 | let mut spi = Spi::new( | 28 | let mut spi = Spi::new( |
| 29 | p.SPI1, | 29 | p.SPI1, |
| 30 | p.PB3, | 30 | p.PB3, |
| 31 | p.PA7, | 31 | p.PB5, |
| 32 | p.PA6, | 32 | p.PB4, |
| 33 | p.DMA2_CH3, | 33 | p.DMA2_CH3, |
| 34 | p.DMA2_CH2, | 34 | p.DMA2_CH2, |
| 35 | Hertz(1_000_000), | 35 | Hertz(1_000_000), |
