aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatous Hybl <[email protected]>2022-03-27 19:29:29 +0200
committerMatous Hybl <[email protected]>2022-04-07 12:57:02 +0200
commiteb6910fa868a1af1a9d64ba1f5565eaaf437f7b9 (patch)
tree479d1b17b4c944836bb9fd1b1a9f0a35bfab10c5 /examples
parentfee0aef076718adcb2c654920712aa20786c94be (diff)
Reexport unborrow macro in HALs
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32h7/Cargo.toml1
-rw-r--r--examples/stm32h7/src/bin/low_level_timer_api.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml
index 5c8861af5..6146b6dc6 100644
--- a/examples/stm32h7/Cargo.toml
+++ b/examples/stm32h7/Cargo.toml
@@ -11,7 +11,6 @@ resolver = "2"
11embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime"] } 11embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime"] }
12embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "stm32h743bi", "net", "time-driver-any", "exti", "unstable-pac", "unstable-traits"] } 12embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "stm32h743bi", "net", "time-driver-any", "exti", "unstable-pac", "unstable-traits"] }
13embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] } 13embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] }
14embassy-hal-common = { path = "../../embassy-hal-common", default-features = false, features = ["defmt"] }
15 14
16defmt = "0.3" 15defmt = "0.3"
17defmt-rtt = "0.3" 16defmt-rtt = "0.3"
diff --git a/examples/stm32h7/src/bin/low_level_timer_api.rs b/examples/stm32h7/src/bin/low_level_timer_api.rs
index 9ddfd8b27..3b1b8044d 100644
--- a/examples/stm32h7/src/bin/low_level_timer_api.rs
+++ b/examples/stm32h7/src/bin/low_level_timer_api.rs
@@ -10,11 +10,11 @@ use defmt::*;
10use embassy::executor::Spawner; 10use embassy::executor::Spawner;
11use embassy::time::{Duration, Timer}; 11use embassy::time::{Duration, Timer};
12use embassy::util::Unborrow; 12use embassy::util::Unborrow;
13use embassy_hal_common::unborrow;
14use embassy_stm32::gpio::low_level::AFType; 13use embassy_stm32::gpio::low_level::AFType;
15use embassy_stm32::gpio::Speed; 14use embassy_stm32::gpio::Speed;
16use embassy_stm32::pwm::*; 15use embassy_stm32::pwm::*;
17use embassy_stm32::time::{Hertz, U32Ext}; 16use embassy_stm32::time::{Hertz, U32Ext};
17use embassy_stm32::unborrow;
18use embassy_stm32::{Config, Peripherals}; 18use embassy_stm32::{Config, Peripherals};
19 19
20pub fn config() -> Config { 20pub fn config() -> Config {