diff options
| author | Ulf Lilleengen <[email protected]> | 2021-06-16 15:12:07 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2021-06-16 15:12:07 +0200 |
| commit | b6a870369834b148d0f307abd37ea246180c89fb (patch) | |
| tree | 2c28097238df39d166436ca3288bdaf2cbbcc10b /examples | |
| parent | c9bf039cae73fb21fa1d2e14d4ce7137df76c8f8 (diff) | |
Add support for generating PAC for dual cores
* Chips that have multiple cores will be exposed as chipname_corename,
i.e. stm32wl55jc_cm4
* Chips that have single cores will use the chip family as feature name
and pick the first and only core from the list
* Add support for stm32wl55 chip family
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!"); |
