From 999b95c0931d7dbf7d29d4b9722995ce716e98e0 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:39:50 +1100 Subject: [PATCH] Fix out-of-date comment about SPI pins --- on-target-tests/tests/dma_spi_loopback_u8.rs | 2 +- rp2040-hal/examples/spi_dma.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/on-target-tests/tests/dma_spi_loopback_u8.rs b/on-target-tests/tests/dma_spi_loopback_u8.rs index 3c7f6a2cb..20b0f26c9 100644 --- a/on-target-tests/tests/dma_spi_loopback_u8.rs +++ b/on-target-tests/tests/dma_spi_loopback_u8.rs @@ -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(); diff --git a/rp2040-hal/examples/spi_dma.rs b/rp2040-hal/examples/spi_dma.rs index 67ba993d1..b0c1b295d 100644 --- a/rp2040-hal/examples/spi_dma.rs +++ b/rp2040-hal/examples/spi_dma.rs @@ -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::(); let spi_miso = pins.gpio4.into_function::(); let spi_sclk = pins.gpio6.into_function::();