diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32l0/src/bin/blinky.rs | 5 | ||||
| -rw-r--r-- | examples/stm32l0/src/bin/button.rs | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/examples/stm32l0/src/bin/blinky.rs b/examples/stm32l0/src/bin/blinky.rs index e7433c26f..ab0a2bdb2 100644 --- a/examples/stm32l0/src/bin/blinky.rs +++ b/examples/stm32l0/src/bin/blinky.rs | |||
| @@ -8,7 +8,10 @@ | |||
| 8 | 8 | ||
| 9 | #[path = "../example_common.rs"] | 9 | #[path = "../example_common.rs"] |
| 10 | mod example_common; | 10 | mod example_common; |
| 11 | use embassy_stm32::{rcc::*, gpio::{Level, Output}}; | 11 | use embassy_stm32::{ |
| 12 | gpio::{Level, Output}, | ||
| 13 | rcc::*, | ||
| 14 | }; | ||
| 12 | use embedded_hal::digital::v2::OutputPin; | 15 | use embedded_hal::digital::v2::OutputPin; |
| 13 | use example_common::*; | 16 | use example_common::*; |
| 14 | 17 | ||
diff --git a/examples/stm32l0/src/bin/button.rs b/examples/stm32l0/src/bin/button.rs index 1a2e20b14..04c48112a 100644 --- a/examples/stm32l0/src/bin/button.rs +++ b/examples/stm32l0/src/bin/button.rs | |||
| @@ -8,13 +8,15 @@ | |||
| 8 | 8 | ||
| 9 | #[path = "../example_common.rs"] | 9 | #[path = "../example_common.rs"] |
| 10 | mod example_common; | 10 | mod example_common; |
| 11 | use embassy_stm32::{rcc::*, gpio::{Input, Level, Output, Pull}}; | 11 | use embassy_stm32::{ |
| 12 | gpio::{Input, Level, Output, Pull}, | ||
| 13 | rcc::*, | ||
| 14 | }; | ||
| 12 | use embedded_hal::digital::v2::{InputPin, OutputPin}; | 15 | use embedded_hal::digital::v2::{InputPin, OutputPin}; |
| 13 | use example_common::*; | 16 | use example_common::*; |
| 14 | 17 | ||
| 15 | use cortex_m_rt::entry; | 18 | use cortex_m_rt::entry; |
| 16 | 19 | ||
| 17 | |||
| 18 | #[entry] | 20 | #[entry] |
| 19 | fn main() -> ! { | 21 | fn main() -> ! { |
| 20 | info!("Hello World!"); | 22 | info!("Hello World!"); |
