diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-07-29 21:58:35 +0200 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2022-07-29 23:40:36 +0200 |
commit | a0f1b0ee01d461607660d2d56b5b1bdc57e0d3fb (patch) | |
tree | e60fc8f8db8ec07e55d655c1a830b07f4db0b7d2 /examples/stm32u5 | |
parent | 8745d646f0976791b7098456aa61adb983fb1c18 (diff) | |
download | embassy-a0f1b0ee01d461607660d2d56b5b1bdc57e0d3fb.zip |
Split embassy crate into embassy-executor, embassy-util.
Diffstat (limited to 'examples/stm32u5')
-rw-r--r-- | examples/stm32u5/Cargo.toml | 3 | ||||
-rw-r--r-- | examples/stm32u5/src/bin/blinky.rs | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/examples/stm32u5/Cargo.toml b/examples/stm32u5/Cargo.toml index 22e2e09a..4ce95be4 100644 --- a/examples/stm32u5/Cargo.toml +++ b/examples/stm32u5/Cargo.toml @@ -4,7 +4,8 @@ name = "embassy-stm32u5-examples" version = "0.1.0" [dependencies] -embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] } +embassy-util = { version = "0.1.0", path = "../../embassy-util", features = ["defmt"] } +embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "defmt-timestamp-uptime", "time-tick-32768hz"] } embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "stm32u585ai", "time-driver-any", "memory-x" ] } defmt = "0.3" diff --git a/examples/stm32u5/src/bin/blinky.rs b/examples/stm32u5/src/bin/blinky.rs index 4910e0b9..4f3eabc5 100644 --- a/examples/stm32u5/src/bin/blinky.rs +++ b/examples/stm32u5/src/bin/blinky.rs @@ -3,13 +3,13 @@ #![feature(type_alias_impl_trait)] use defmt::*; -use embassy::executor::Spawner; -use embassy::time::{Duration, Timer}; +use embassy_executor::executor::Spawner; +use embassy_executor::time::{Duration, Timer}; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_stm32::Peripherals; use {defmt_rtt as _, panic_probe as _}; -#[embassy::main] +#[embassy_executor::main] async fn main(_spawner: Spawner, p: Peripherals) -> ! { info!("Hello World!"); |