Skip to content

Commit

Permalink
Fix out-of-date comment about SPI pins
Browse files Browse the repository at this point in the history
  • Loading branch information
9names committed Oct 2, 2023
1 parent fcebdea commit 999b95c
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion on-target-tests/tests/dma_spi_loopback_u8.rs
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ mod tests {
&mut pac.RESETS,
);

// These are implicitly used by the spi driver if they are in the correct mode
// Set up our SPI pins into the correct mode
let spi_sclk = pins.gpio6.reconfigure();
let spi_mosi = pins.gpio7.reconfigure();
let spi_miso = pins.gpio4.reconfigure();
2 changes: 1 addition & 1 deletion rp2040-hal/examples/spi_dma.rs
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ fn main() -> ! {
&mut pac.RESETS,
);

// These are implicitly used by the spi driver if they are in the correct mode
// Set up our SPI pins into the correct mode
let spi_mosi = pins.gpio7.into_function::<hal::gpio::FunctionSpi>();
let spi_miso = pins.gpio4.into_function::<hal::gpio::FunctionSpi>();
let spi_sclk = pins.gpio6.into_function::<hal::gpio::FunctionSpi>();

0 comments on commit 999b95c

Please sign in to comment.