diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-06-16 16:46:01 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-16 16:46:01 +0200 |
| commit | 6386c34079913732466046194f79a683a4aefce4 (patch) | |
| tree | dc7c1007adfe19c14a8f9979ed9d050ccfa75b5a /examples | |
| parent | 927be5010926f5ce1f81bd2cec75b1e8883be377 (diff) | |
| parent | a4ea08f89f47d1f3f6382997354f1d6ef8bcb58b (diff) | |
Merge pull request #250 from lulf/dual-core
Add support for generating PAC for dual cores
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!"); |
