Up SPI freq

This commit is contained in:
riceman2000 2025-09-14 11:30:22 -04:00
parent 6beb7e35a6
commit daae1fe5c9

View File

@ -64,7 +64,7 @@ async fn main(spawner: Spawner) {
// Construct an SPI driver backed by a PIO state machine // Construct an SPI driver backed by a PIO state machine
let mut spi_cfg = SpiConfig::default(); let mut spi_cfg = SpiConfig::default();
spi_cfg.frequency = 10_000_000; // The PIO SPI program is much less stable than the actual SPI spi_cfg.frequency = 12_500_000; // The PIO SPI program is much less stable than the actual SPI
// peripheral, use higher speeds at your peril // peripheral, use higher speeds at your peril
let spi = Spi::new(&mut common, sm0, clk, mosi, miso, p.DMA_CH0, p.DMA_CH1, spi_cfg); let spi = Spi::new(&mut common, sm0, clk, mosi, miso, p.DMA_CH0, p.DMA_CH1, spi_cfg);