aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-06-16 16:46:01 +0200
committerGitHub <[email protected]>2021-06-16 16:46:01 +0200
commit6386c34079913732466046194f79a683a4aefce4 (patch)
treedc7c1007adfe19c14a8f9979ed9d050ccfa75b5a /examples
parent927be5010926f5ce1f81bd2cec75b1e8883be377 (diff)
parenta4ea08f89f47d1f3f6382997354f1d6ef8bcb58b (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.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!");