aboutsummaryrefslogtreecommitdiff
path: root/tests/rp/src/bin/gpio_async.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rp/src/bin/gpio_async.rs')
-rw-r--r--tests/rp/src/bin/gpio_async.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/rp/src/bin/gpio_async.rs b/tests/rp/src/bin/gpio_async.rs
index 39e3d6337..72fb0910d 100644
--- a/tests/rp/src/bin/gpio_async.rs
+++ b/tests/rp/src/bin/gpio_async.rs
@@ -22,8 +22,8 @@ async fn main(_spawner: Spawner) {
22 22
23 { 23 {
24 info!("test wait_for_high"); 24 info!("test wait_for_high");
25 let mut output = Output::new(&mut output_pin, Level::Low); 25 let mut output = Output::new(output_pin.reborrow(), Level::Low);
26 let mut input = Input::new(&mut input_pin, Pull::None); 26 let mut input = Input::new(input_pin.reborrow(), Pull::None);
27 27
28 assert!(input.is_low(), "input was expected to be low"); 28 assert!(input.is_low(), "input was expected to be low");
29 29
@@ -43,8 +43,8 @@ async fn main(_spawner: Spawner) {
43 43
44 { 44 {
45 info!("test wait_for_low"); 45 info!("test wait_for_low");
46 let mut output = Output::new(&mut output_pin, Level::High); 46 let mut output = Output::new(output_pin.reborrow(), Level::High);
47 let mut input = Input::new(&mut input_pin, Pull::None); 47 let mut input = Input::new(input_pin.reborrow(), Pull::None);
48 48
49 assert!(input.is_high(), "input was expected to be high"); 49 assert!(input.is_high(), "input was expected to be high");
50 50
@@ -63,8 +63,8 @@ async fn main(_spawner: Spawner) {
63 63
64 { 64 {
65 info!("test wait_for_rising_edge"); 65 info!("test wait_for_rising_edge");
66 let mut output = Output::new(&mut output_pin, Level::Low); 66 let mut output = Output::new(output_pin.reborrow(), Level::Low);
67 let mut input = Input::new(&mut input_pin, Pull::None); 67 let mut input = Input::new(input_pin.reborrow(), Pull::None);
68 68
69 assert!(input.is_low(), "input was expected to be low"); 69 assert!(input.is_low(), "input was expected to be low");
70 70
@@ -83,8 +83,8 @@ async fn main(_spawner: Spawner) {
83 83
84 { 84 {
85 info!("test wait_for_falling_edge"); 85 info!("test wait_for_falling_edge");
86 let mut output = Output::new(&mut output_pin, Level::High); 86 let mut output = Output::new(output_pin.reborrow(), Level::High);
87 let mut input = Input::new(&mut input_pin, Pull::None); 87 let mut input = Input::new(input_pin.reborrow(), Pull::None);
88 88
89 assert!(input.is_high(), "input was expected to be high"); 89 assert!(input.is_high(), "input was expected to be high");
90 90
@@ -103,8 +103,8 @@ async fn main(_spawner: Spawner) {
103 103
104 { 104 {
105 info!("test wait_for_any_edge (falling)"); 105 info!("test wait_for_any_edge (falling)");
106 let mut output = Output::new(&mut output_pin, Level::High); 106 let mut output = Output::new(output_pin.reborrow(), Level::High);
107 let mut input = Input::new(&mut input_pin, Pull::None); 107 let mut input = Input::new(input_pin.reborrow(), Pull::None);
108 108
109 assert!(input.is_high(), "input was expected to be high"); 109 assert!(input.is_high(), "input was expected to be high");
110 110
@@ -123,8 +123,8 @@ async fn main(_spawner: Spawner) {
123 123
124 { 124 {
125 info!("test wait_for_any_edge (rising)"); 125 info!("test wait_for_any_edge (rising)");
126 let mut output = Output::new(&mut output_pin, Level::Low); 126 let mut output = Output::new(output_pin.reborrow(), Level::Low);
127 let mut input = Input::new(&mut input_pin, Pull::None); 127 let mut input = Input::new(input_pin.reborrow(), Pull::None);
128 128
129 assert!(input.is_low(), "input was expected to be low"); 129 assert!(input.is_low(), "input was expected to be low");
130 130