aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2021-06-16 15:12:07 +0200
committerUlf Lilleengen <[email protected]>2021-06-16 15:12:07 +0200
commitb6a870369834b148d0f307abd37ea246180c89fb (patch)
tree2c28097238df39d166436ca3288bdaf2cbbcc10b /examples
parentc9bf039cae73fb21fa1d2e14d4ce7137df76c8f8 (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.rs5
-rw-r--r--examples/stm32l0/src/bin/button.rs6
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"]
10mod example_common; 10mod example_common;
11use embassy_stm32::{rcc::*, gpio::{Level, Output}}; 11use embassy_stm32::{
12 gpio::{Level, Output},
13 rcc::*,
14};
12use embedded_hal::digital::v2::OutputPin; 15use embedded_hal::digital::v2::OutputPin;
13use example_common::*; 16use 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"]
10mod example_common; 10mod example_common;
11use embassy_stm32::{rcc::*, gpio::{Input, Level, Output, Pull}}; 11use embassy_stm32::{
12 gpio::{Input, Level, Output, Pull},
13 rcc::*,
14};
12use embedded_hal::digital::v2::{InputPin, OutputPin}; 15use embedded_hal::digital::v2::{InputPin, OutputPin};
13use example_common::*; 16use example_common::*;
14 17
15use cortex_m_rt::entry; 18use cortex_m_rt::entry;
16 19
17
18#[entry] 20#[entry]
19fn main() -> ! { 21fn main() -> ! {
20 info!("Hello World!"); 22 info!("Hello World!");