diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-05-31 21:02:40 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-31 21:02:40 +0000 |
| commit | e61136fa4ab0261ec9d9e262e1c3295d4549fa5f (patch) | |
| tree | b58ea1cf6116ce13988558c302c1b918e0355527 /examples | |
| parent | 7baa14371b3ee97b7008e2613489b07942d32582 (diff) | |
| parent | 8a1658ab0e946b1fb6e91a9b22e92a51b78704ec (diff) | |
Merge pull request #3028 from embassy-rs/check-cfg-fix
stm32/spi: restrict txonly_nosck to SPIv1, it hangs in other versions.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32g0/src/bin/spi_neopixel.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32g0/src/bin/spi_neopixel.rs b/examples/stm32g0/src/bin/spi_neopixel.rs index 2deee271d..edcae74f7 100644 --- a/examples/stm32g0/src/bin/spi_neopixel.rs +++ b/examples/stm32g0/src/bin/spi_neopixel.rs | |||
| @@ -76,7 +76,7 @@ async fn main(_spawner: Spawner) { | |||
| 76 | 76 | ||
| 77 | let mut config = Config::default(); | 77 | let mut config = Config::default(); |
| 78 | config.frequency = Hertz(4_000_000); | 78 | config.frequency = Hertz(4_000_000); |
| 79 | let mut spi = Spi::new_txonly_nosck(p.SPI1, p.PB5, p.DMA1_CH3, config); | 79 | let mut spi = Spi::new_txonly(p.SPI1, p.PB3, p.PB5, p.DMA1_CH3, config); // SCK is unused. |
| 80 | 80 | ||
| 81 | let mut neopixels = Ws2812::new(); | 81 | let mut neopixels = Ws2812::new(); |
| 82 | 82 | ||
