summaryrefslogtreecommitdiff
path: root/examples/nrf/src/bin/multiprio.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2022-07-29 21:58:35 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2022-07-29 23:40:36 +0200
commita0f1b0ee01d461607660d2d56b5b1bdc57e0d3fb (patch)
treee60fc8f8db8ec07e55d655c1a830b07f4db0b7d2 /examples/nrf/src/bin/multiprio.rs
parent8745d646f0976791b7098456aa61adb983fb1c18 (diff)
downloadembassy-a0f1b0ee01d461607660d2d56b5b1bdc57e0d3fb.zip
Split embassy crate into embassy-executor, embassy-util.
Diffstat (limited to 'examples/nrf/src/bin/multiprio.rs')
-rw-r--r--examples/nrf/src/bin/multiprio.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/nrf/src/bin/multiprio.rs b/examples/nrf/src/bin/multiprio.rs
index 1a4598e2..7050da37 100644
--- a/examples/nrf/src/bin/multiprio.rs
+++ b/examples/nrf/src/bin/multiprio.rs
@@ -59,14 +59,14 @@
use cortex_m_rt::entry;
use defmt::{info, unwrap};
-use embassy::time::{Duration, Instant, Timer};
-use embassy::util::Forever;
+use embassy_executor::time::{Duration, Instant, Timer};
use embassy_nrf::executor::{Executor, InterruptExecutor};
use embassy_nrf::interrupt;
use embassy_nrf::interrupt::InterruptExt;
+use embassy_util::Forever;
use {defmt_rtt as _, panic_probe as _};
-#[embassy::task]
+#[embassy_executor::task]
async fn run_high() {
loop {
info!(" [high] tick!");
@@ -74,7 +74,7 @@ async fn run_high() {
}
}
-#[embassy::task]
+#[embassy_executor::task]
async fn run_med() {
loop {
let start = Instant::now();
@@ -91,7 +91,7 @@ async fn run_med() {
}
}
-#[embassy::task]
+#[embassy_executor::task]
async fn run_low() {
loop {
let start = Instant::now();