mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-30 22:01:07 +00:00
Up SPI freq
This commit is contained in:
parent
6beb7e35a6
commit
daae1fe5c9
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user