aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7/src/bin/low_level_timer_api.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-06-11 05:08:57 +0200
committerDario Nieuwenhuis <[email protected]>2022-06-12 21:45:38 +0200
commit5085100df2845745f13715669c18a785a374a879 (patch)
treed24d264b23753d628e58fa3b92da77a78e28ce35 /examples/stm32h7/src/bin/low_level_timer_api.rs
parentdb344c2bda55bd0352a43720788185cc4d3a420e (diff)
Add embassy-cortex-m crate.
- Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`. - Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore) - Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
Diffstat (limited to 'examples/stm32h7/src/bin/low_level_timer_api.rs')
-rw-r--r--examples/stm32h7/src/bin/low_level_timer_api.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/low_level_timer_api.rs b/examples/stm32h7/src/bin/low_level_timer_api.rs
index 3b1b8044d..647c5a8fa 100644
--- a/examples/stm32h7/src/bin/low_level_timer_api.rs
+++ b/examples/stm32h7/src/bin/low_level_timer_api.rs
@@ -9,12 +9,12 @@ use panic_probe as _;
9use defmt::*; 9use defmt::*;
10use embassy::executor::Spawner; 10use embassy::executor::Spawner;
11use embassy::time::{Duration, Timer}; 11use embassy::time::{Duration, Timer};
12use embassy::util::Unborrow;
13use embassy_stm32::gpio::low_level::AFType; 12use embassy_stm32::gpio::low_level::AFType;
14use embassy_stm32::gpio::Speed; 13use embassy_stm32::gpio::Speed;
15use embassy_stm32::pwm::*; 14use embassy_stm32::pwm::*;
16use embassy_stm32::time::{Hertz, U32Ext}; 15use embassy_stm32::time::{Hertz, U32Ext};
17use embassy_stm32::unborrow; 16use embassy_stm32::unborrow;
17use embassy_stm32::Unborrow;
18use embassy_stm32::{Config, Peripherals}; 18use embassy_stm32::{Config, Peripherals};
19 19
20pub fn config() -> Config { 20pub fn config() -> Config {