aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rp/src')
-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 4218327ec..c45aeac7d 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; // SPI0 SCLK 30 let mosi = p.PIN_6;
31 let miso = p.PIN_7; // SPI0 MOSI 31 let miso = p.PIN_7;
32 let clk = p.PIN_8; // SPI1 MISO 32 let clk = p.PIN_8;
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 18b57d26e..e7d9b0ecc 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; // SPI0 SCLK 30 let mosi = p.PIN_6;
31 let miso = p.PIN_7; // SPI0 MOSI 31 let miso = p.PIN_7;
32 let clk = p.PIN_8; // SPI1 MISO 32 let clk = p.PIN_8;
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