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 /tests/rp | |
parent | 8745d646f0976791b7098456aa61adb983fb1c18 (diff) | |
download | embassy-a0f1b0ee01d461607660d2d56b5b1bdc57e0d3fb.zip |
Split embassy crate into embassy-executor, embassy-util.
Diffstat (limited to 'tests/rp')
-rw-r--r-- | tests/rp/Cargo.toml | 3 | ||||
-rw-r--r-- | tests/rp/src/bin/gpio.rs | 4 | ||||
-rw-r--r-- | tests/rp/src/bin/gpio_async.rs | 6 |
3 files changed, 7 insertions, 6 deletions
diff --git a/tests/rp/Cargo.toml b/tests/rp/Cargo.toml index fe791d0d..d19243b9 100644 --- a/tests/rp/Cargo.toml +++ b/tests/rp/Cargo.toml @@ -4,7 +4,8 @@ name = "embassy-rp-tests" version = "0.1.0" [dependencies] -embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } +embassy-util = { version = "0.1.0", path = "../../embassy-util", features = ["defmt"] } +embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt"] } embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["nightly", "defmt", "unstable-pac", "unstable-traits"] } defmt = "0.3.0" diff --git a/tests/rp/src/bin/gpio.rs b/tests/rp/src/bin/gpio.rs index 0be9d9f2..6f6baf77 100644 --- a/tests/rp/src/bin/gpio.rs +++ b/tests/rp/src/bin/gpio.rs @@ -3,12 +3,12 @@ #![feature(type_alias_impl_trait)] use defmt::{assert, *}; -use embassy::executor::Spawner; +use embassy_executor::executor::Spawner; use embassy_rp::gpio::{Flex, Input, Level, Output, OutputOpenDrain, Pull}; use embassy_rp::Peripherals; use {defmt_rtt as _, panic_probe as _}; -#[embassy::main] +#[embassy_executor::main] async fn main(_spawner: Spawner, p: Peripherals) { info!("Hello World!"); diff --git a/tests/rp/src/bin/gpio_async.rs b/tests/rp/src/bin/gpio_async.rs index 46df4105..1098682a 100644 --- a/tests/rp/src/bin/gpio_async.rs +++ b/tests/rp/src/bin/gpio_async.rs @@ -3,14 +3,14 @@ #![feature(type_alias_impl_trait)] use defmt::{assert, *}; -use embassy::executor::Spawner; -use embassy::time::{Duration, Instant, Timer}; +use embassy_executor::executor::Spawner; +use embassy_executor::time::{Duration, Instant, Timer}; use embassy_rp::gpio::{Input, Level, Output, Pull}; use embassy_rp::Peripherals; use futures::future::join; use {defmt_rtt as _, panic_probe as _}; -#[embassy::main] +#[embassy_executor::main] async fn main(_spawner: Spawner, p: Peripherals) { info!("embassy-rp gpio_async test"); |