diff options
Diffstat (limited to 'cyw43-pio')
| -rw-r--r-- | cyw43-pio/Cargo.toml | 2 | ||||
| -rw-r--r-- | cyw43-pio/src/lib.rs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/cyw43-pio/Cargo.toml b/cyw43-pio/Cargo.toml index f52788ba3..2397c76d3 100644 --- a/cyw43-pio/Cargo.toml +++ b/cyw43-pio/Cargo.toml | |||
| @@ -12,8 +12,6 @@ documentation = "https://docs.embassy.dev/cyw43-pio" | |||
| 12 | [dependencies] | 12 | [dependencies] |
| 13 | cyw43 = { version = "0.3.0", path = "../cyw43" } | 13 | cyw43 = { version = "0.3.0", path = "../cyw43" } |
| 14 | embassy-rp = { version = "0.3.0", path = "../embassy-rp" } | 14 | embassy-rp = { version = "0.3.0", path = "../embassy-rp" } |
| 15 | pio-proc = { git = "https://github.com/rp-rs/pio-rs", rev = "fa586448b0b223217eec8c92c19fe6823dd04cc4" } | ||
| 16 | pio = { git = "https://github.com/rp-rs/pio-rs", rev = "fa586448b0b223217eec8c92c19fe6823dd04cc4" } | ||
| 17 | fixed = "1.23.1" | 15 | fixed = "1.23.1" |
| 18 | defmt = { version = "0.3", optional = true } | 16 | defmt = { version = "0.3", optional = true } |
| 19 | 17 | ||
diff --git a/cyw43-pio/src/lib.rs b/cyw43-pio/src/lib.rs index b08e68307..d0d504395 100644 --- a/cyw43-pio/src/lib.rs +++ b/cyw43-pio/src/lib.rs | |||
| @@ -8,11 +8,11 @@ use core::slice; | |||
| 8 | use cyw43::SpiBusCyw43; | 8 | use cyw43::SpiBusCyw43; |
| 9 | use embassy_rp::dma::Channel; | 9 | use embassy_rp::dma::Channel; |
| 10 | use embassy_rp::gpio::{Drive, Level, Output, Pull, SlewRate}; | 10 | use embassy_rp::gpio::{Drive, Level, Output, Pull, SlewRate}; |
| 11 | use embassy_rp::pio::program::pio_asm; | ||
| 11 | use embassy_rp::pio::{Common, Config, Direction, Instance, Irq, PioPin, ShiftDirection, StateMachine}; | 12 | use embassy_rp::pio::{Common, Config, Direction, Instance, Irq, PioPin, ShiftDirection, StateMachine}; |
| 12 | use embassy_rp::{Peripheral, PeripheralRef}; | 13 | use embassy_rp::{Peripheral, PeripheralRef}; |
| 13 | use fixed::types::extra::U8; | 14 | use fixed::types::extra::U8; |
| 14 | use fixed::FixedU32; | 15 | use fixed::FixedU32; |
| 15 | use pio_proc::pio_asm; | ||
| 16 | 16 | ||
| 17 | /// SPI comms driven by PIO. | 17 | /// SPI comms driven by PIO. |
| 18 | pub struct PioSpi<'d, PIO: Instance, const SM: usize, DMA> { | 18 | pub struct PioSpi<'d, PIO: Instance, const SM: usize, DMA> { |
