summaryrefslogtreecommitdiff
path: root/tests/rp
diff options
context:
space:
mode:
authorHenrik Alsér <henrik.alser@me.com>2022-08-31 22:28:47 +0200
committerHenrik Alsér <henrik@mindbite.se>2022-09-01 15:12:44 +0200
commit9ff5c507741cfadc8a1fc125a353d8438433494f (patch)
treeb84860c69b2b6f72cac752ab47f4bfec064f3ab3 /tests/rp
parent71c130488b465012d1cb076deb182c5946c011d3 (diff)
downloadembassy-9ff5c507741cfadc8a1fc125a353d8438433494f.zip
Cleanup examples
Diffstat (limited to 'tests/rp')
-rw-r--r--tests/rp/src/bin/spi.rs4
-rw-r--r--tests/rp/src/bin/spi_async.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/rp/src/bin/spi.rs b/tests/rp/src/bin/spi.rs
index 3ce85a95..478d62ee 100644
--- a/tests/rp/src/bin/spi.rs
+++ b/tests/rp/src/bin/spi.rs
@@ -4,7 +4,7 @@
use defmt::{assert_eq, *};
use embassy_executor::Spawner;
-use embassy_rp::spi::{Blocking, Config, Spi};
+use embassy_rp::spi::{Config, Spi};
use {defmt_rtt as _, panic_probe as _};
#[embassy_executor::main]
@@ -16,7 +16,7 @@ async fn main(_spawner: Spawner) {
let mosi = p.PIN_3;
let miso = p.PIN_4;
- let mut spi: Spi<'_, _, Blocking> = Spi::new_blocking(p.SPI0, clk, mosi, miso, Config::default());
+ let mut spi = Spi::new_blocking(p.SPI0, clk, mosi, miso, Config::default());
let tx_buf = [1_u8, 2, 3, 4, 5, 6];
let mut rx_buf = [0_u8; 6];
diff --git a/tests/rp/src/bin/spi_async.rs b/tests/rp/src/bin/spi_async.rs
index 41c711f7..6c85ef60 100644
--- a/tests/rp/src/bin/spi_async.rs
+++ b/tests/rp/src/bin/spi_async.rs
@@ -4,7 +4,7 @@
use defmt::{assert_eq, *};
use embassy_executor::Spawner;
-use embassy_rp::spi::{Async, Config, Spi};
+use embassy_rp::spi::{Config, Spi};
use {defmt_rtt as _, panic_probe as _};
#[embassy_executor::main]
@@ -16,7 +16,7 @@ async fn main(_spawner: Spawner) {
let mosi = p.PIN_3;
let miso = p.PIN_4;
- let mut spi: Spi<'_, _, Async> = Spi::new(p.SPI0, clk, mosi, miso, p.DMA_CH0, p.DMA_CH1, Config::default());
+ let mut spi = Spi::new(p.SPI0, clk, mosi, miso, p.DMA_CH0, p.DMA_CH1, Config::default());
let tx_buf = [1_u8, 2, 3, 4, 5, 6];
let mut rx_buf = [0_u8; 6];