aboutsummaryrefslogtreecommitdiff
path: root/tests/stm32
diff options
context:
space:
mode:
authorJan Špaček <[email protected]>2024-06-01 18:16:40 +0200
committerJan Špaček <[email protected]>2024-06-16 21:11:55 +0200
commit94007ce6e0fc59e374902eadcc31616e56068e43 (patch)
tree014302ef421d4cfdc6e816737793f3ad147d7bc1 /tests/stm32
parent1a2c8cecded9805970dc63f495723c690c01397e (diff)
stm32/gpio: refactor AfType
Diffstat (limited to 'tests/stm32')
-rw-r--r--tests/stm32/src/bin/gpio.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stm32/src/bin/gpio.rs b/tests/stm32/src/bin/gpio.rs
index dfa299ab5..1d1018c5c 100644
--- a/tests/stm32/src/bin/gpio.rs
+++ b/tests/stm32/src/bin/gpio.rs
@@ -112,7 +112,7 @@ async fn main(_spawner: Spawner) {
112 let b = Input::new(&mut b, Pull::Down); 112 let b = Input::new(&mut b, Pull::Down);
113 // no pull, the status is undefined 113 // no pull, the status is undefined
114 114
115 let mut a = OutputOpenDrain::new(&mut a, Level::Low, Speed::Low, Pull::None); 115 let mut a = OutputOpenDrain::new(&mut a, Level::Low, Speed::Low);
116 delay(); 116 delay();
117 assert!(b.is_low()); 117 assert!(b.is_low());
118 a.set_high(); // High-Z output 118 a.set_high(); // High-Z output
@@ -203,7 +203,7 @@ async fn main(_spawner: Spawner) {
203 203
204 let mut a = Flex::new(&mut a); 204 let mut a = Flex::new(&mut a);
205 a.set_low(); 205 a.set_low();
206 a.set_as_input_output(Speed::Low, Pull::None); 206 a.set_as_input_output(Speed::Low);
207 delay(); 207 delay();
208 assert!(b.is_low()); 208 assert!(b.is_low());
209 a.set_high(); // High-Z output 209 a.set_high(); // High-Z output