aboutsummaryrefslogtreecommitdiff
path: root/examples/rp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rp')
-rw-r--r--examples/rp/src/bin/pio_spi.rs6
-rw-r--r--examples/rp/src/bin/pio_spi_async.rs6
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/rp/src/bin/pio_spi.rs b/examples/rp/src/bin/pio_spi.rs
index c45aeac7d..4218327ec 100644
--- a/examples/rp/src/bin/pio_spi.rs
+++ b/examples/rp/src/bin/pio_spi.rs
@@ -27,9 +27,9 @@ async fn main(_spawner: Spawner) {
27 27
28 // These pins are routed to different hardware SPI peripherals, but we can 28 // These pins are routed to different hardware SPI peripherals, but we can
29 // use them together regardless 29 // use them together regardless
30 let mosi = p.PIN_6; 30 let mosi = p.PIN_6; // SPI0 SCLK
31 let miso = p.PIN_7; 31 let miso = p.PIN_7; // SPI0 MOSI
32 let clk = p.PIN_8; 32 let clk = p.PIN_8; // SPI1 MISO
33 33
34 let pio::Pio { mut common, sm0, .. } = pio::Pio::new(p.PIO0, Irqs); 34 let pio::Pio { mut common, sm0, .. } = pio::Pio::new(p.PIO0, Irqs);
35 35
diff --git a/examples/rp/src/bin/pio_spi_async.rs b/examples/rp/src/bin/pio_spi_async.rs
index e7d9b0ecc..18b57d26e 100644
--- a/examples/rp/src/bin/pio_spi_async.rs
+++ b/examples/rp/src/bin/pio_spi_async.rs
@@ -27,9 +27,9 @@ async fn main(_spawner: Spawner) {
27 27
28 // These pins are routed to different hardware SPI peripherals, but we can 28 // These pins are routed to different hardware SPI peripherals, but we can
29 // use them together regardless 29 // use them together regardless
30 let mosi = p.PIN_6; 30 let mosi = p.PIN_6; // SPI0 SCLK
31 let miso = p.PIN_7; 31 let miso = p.PIN_7; // SPI0 MOSI
32 let clk = p.PIN_8; 32 let clk = p.PIN_8; // SPI1 MISO
33 33
34 let pio::Pio { mut common, sm0, .. } = pio::Pio::new(p.PIO0, Irqs); 34 let pio::Pio { mut common, sm0, .. } = pio::Pio::new(p.PIO0, Irqs);
35 35