Skip to content

Commit

Permalink
Merge pull request #697 from 9names/fix_spi_example_comments
Browse files Browse the repository at this point in the history
Fix out-of-date comment about SPI pins
  • Loading branch information
ithinuel authored Oct 2, 2023
2 parents 1c2b7a4 + 999b95c commit 0713409
Show file tree
Hide file tree
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
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/examples/spi_dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down

0 comments on commit 0713409

Please sign in to comment.