diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-05-31 22:16:30 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-05-31 22:58:53 +0200 |
| commit | 339dd859686caee4ed55ed1f3cba0320e085db39 (patch) | |
| tree | c72e264154acf6ff4e80b92080e8eab7f8309e18 /examples/stm32g0/src | |
| parent | 7baa14371b3ee97b7008e2613489b07942d32582 (diff) | |
stm32/spi: restrict txonly_nosck to SPIv1, it hangs in other versions.
Diffstat (limited to 'examples/stm32g0/src')
| -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 | ||
