diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-06-11 05:08:57 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-06-12 21:45:38 +0200 |
| commit | 5085100df2845745f13715669c18a785a374a879 (patch) | |
| tree | d24d264b23753d628e58fa3b92da77a78e28ce35 /examples/stm32h7/src/bin/low_level_timer_api.rs | |
| parent | db344c2bda55bd0352a43720788185cc4d3a420e (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.rs | 2 |
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 _; | |||
| 9 | use defmt::*; | 9 | use defmt::*; |
| 10 | use embassy::executor::Spawner; | 10 | use embassy::executor::Spawner; |
| 11 | use embassy::time::{Duration, Timer}; | 11 | use embassy::time::{Duration, Timer}; |
| 12 | use embassy::util::Unborrow; | ||
| 13 | use embassy_stm32::gpio::low_level::AFType; | 12 | use embassy_stm32::gpio::low_level::AFType; |
| 14 | use embassy_stm32::gpio::Speed; | 13 | use embassy_stm32::gpio::Speed; |
| 15 | use embassy_stm32::pwm::*; | 14 | use embassy_stm32::pwm::*; |
| 16 | use embassy_stm32::time::{Hertz, U32Ext}; | 15 | use embassy_stm32::time::{Hertz, U32Ext}; |
| 17 | use embassy_stm32::unborrow; | 16 | use embassy_stm32::unborrow; |
| 17 | use embassy_stm32::Unborrow; | ||
| 18 | use embassy_stm32::{Config, Peripherals}; | 18 | use embassy_stm32::{Config, Peripherals}; |
| 19 | 19 | ||
| 20 | pub fn config() -> Config { | 20 | pub fn config() -> Config { |
