diff options
| author | Bob McWhirter <[email protected]> | 2021-11-02 15:56:04 -0400 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-11-02 15:56:04 -0400 |
| commit | 9deafa8bab6c2ba4fef91a964defdf7f24c52d05 (patch) | |
| tree | 00562d549231b55a6807cb28d2683c61f40f9591 /examples/stm32u5/src/bin | |
| parent | d1272e00bb840a8b22606daea4519ca6823c0f76 (diff) | |
Remove unused imports.
Diffstat (limited to 'examples/stm32u5/src/bin')
| -rw-r--r-- | examples/stm32u5/src/bin/boot.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/examples/stm32u5/src/bin/boot.rs b/examples/stm32u5/src/bin/boot.rs index 4efe9abad..5a7575e2d 100644 --- a/examples/stm32u5/src/bin/boot.rs +++ b/examples/stm32u5/src/bin/boot.rs | |||
| @@ -4,8 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | #[path = "../example_common.rs"] | 5 | #[path = "../example_common.rs"] |
| 6 | mod example_common; | 6 | mod example_common; |
| 7 | use embassy_stm32::gpio::{Input, Pull}; | ||
| 8 | use embedded_hal::digital::v2::InputPin; | ||
| 9 | use example_common::*; | 7 | use example_common::*; |
| 10 | 8 | ||
| 11 | #[cortex_m_rt::entry] | 9 | #[cortex_m_rt::entry] |
| @@ -13,16 +11,4 @@ fn main() -> ! { | |||
| 13 | info!("Hello World!"); | 11 | info!("Hello World!"); |
| 14 | 12 | ||
| 15 | loop {} | 13 | loop {} |
| 16 | |||
| 17 | //let p = embassy_stm32::init(Default::default()); | ||
| 18 | |||
| 19 | //let button = Input::new(p.PC13, Pull::Up); | ||
| 20 | |||
| 21 | //loop { | ||
| 22 | //if unwrap!(button.is_high()) { | ||
| 23 | //info!("high"); | ||
| 24 | //} else { | ||
| 25 | //info!("low"); | ||
| 26 | //} | ||
| 27 | //} | ||
| 28 | } | 14 | } |
