Skip to content

Commit

Permalink
Merge pull request rp-rs#624 from jannic/on-target-tests
Browse files Browse the repository at this point in the history
Fix on target tests
  • Loading branch information
jannic authored May 30, 2023
2 parents b087c0c + edad1d2 commit 0b16b13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion on-target-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmt-rtt = "0.4"
defmt-test = "0.3"
panic-probe = { version = "0.3", features = ["print-defmt"] }

rp2040-hal = { path = "../rp2040-hal", version = "0.9", features = [
rp2040-hal = { path = "../rp2040-hal", features = [
"defmt",
"critical-section-impl",
] }
Expand Down
6 changes: 3 additions & 3 deletions on-target-tests/tests/dma_spi_loopback_u16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ mod tests {
);

// These are implicitly used by the spi driver if they are in the correct mode
let spi_sclk = pins.gpio6.into();
let spi_mosi = pins.gpio7.into();
let spi_miso = pins.gpio4.into();
let spi_sclk = pins.gpio6.reconfigure();
let spi_mosi = pins.gpio7.reconfigure();
let spi_miso = pins.gpio4.reconfigure();
let spi = hal::spi::Spi::new(pac.SPI0, (spi_mosi, spi_miso, spi_sclk));

// Exchange the uninitialised SPI driver for an initialised one
Expand Down
6 changes: 3 additions & 3 deletions on-target-tests/tests/dma_spi_loopback_u8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ mod tests {
);

// These are implicitly used by the spi driver if they are in the correct mode
let spi_sclk = pins.gpio6.into();
let spi_mosi = pins.gpio7.into();
let spi_miso = pins.gpio4.into();
let spi_sclk = pins.gpio6.reconfigure();
let spi_mosi = pins.gpio7.reconfigure();
let spi_miso = pins.gpio4.reconfigure();
let spi = hal::spi::Spi::new(pac.SPI0, (spi_mosi, spi_miso, spi_sclk));

// Exchange the uninitialised SPI driver for an initialised one
Expand Down

0 comments on commit 0b16b13

Please sign in to comment.