aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author[email protected] <[email protected]>2022-07-08 22:16:01 +0200
committer[email protected] <[email protected]>2022-07-08 22:16:01 +0200
commitdda528808a87af23feafb709dbcd665da91d5547 (patch)
tree6be68b8f5b785f29133ba6b161872004e858717a /tests
parent00df9b507c66526dee1e395fc82a0f71b17c557e (diff)
Flex/ output open drain test done
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/gpio.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/stm32/src/bin/gpio.rs b/tests/stm32/src/bin/gpio.rs
index edcb1ecae..2cdf52c00 100644
--- a/tests/stm32/src/bin/gpio.rs
+++ b/tests/stm32/src/bin/gpio.rs
@@ -172,20 +172,21 @@ async fn main(_spawner: Spawner, p: Peripherals) {
172 delay(); 172 delay();
173 assert!(b.is_low()); 173 assert!(b.is_low());
174 } 174 }
175 /* 175
176 // Test output open drain 176 // Test output open drain
177 { 177 {
178 let b = Input::new(&mut b, Pull::Down); 178 let mut b = Flex::new(&mut b);
179 // no pull, the status is undefined 179 b.set_as_input(Pull::Down);
180 180
181 let mut a = OutputOpenDrain::new(&mut a, Level::Low, Speed::Low, Pull::None); 181 let mut a = Flex::new(&mut a);
182 a.set_low();
183 a.set_as_input_output(Speed::Low, Pull::None);
182 delay(); 184 delay();
183 assert!(b.is_low()); 185 assert!(b.is_low());
184 a.set_high(); // High-Z output 186 a.set_high(); // High-Z output
185 delay(); 187 delay();
186 assert!(b.is_low()); 188 assert!(b.is_low());
187 } 189 }
188*/
189 190
190 info!("Test OK"); 191 info!("Test OK");
191 cortex_m::asm::bkpt(); 192 cortex_m::asm::bkpt();