Skip to content

Commit 7d4c980

Browse files
committed
add cfg flags
1 parent 62ce52d commit 7d4c980

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

examples/rp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ default-executor = [
6565
"embassy-executor/executor-interrupt",
6666
"embassy-executor/executor-thread",
6767
]
68-
custom-executor = [
68+
executor-platform = [
6969
"embassy-rp/executor-interrupt",
7070
"embassy-rp/executor-thread",
7171
]

examples/rp/src/bin/multicore_multiprio.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33
//! with:
44
//!
55
//! ```sh
6-
//! cargo run --release --no-default-features --features=custom-executor --bin multicore_multiprio
6+
//! cargo run --release --no-default-features --features=executor-platform --bin multicore_multiprio
77
//! ```
88
//! Output will be logged via a USB serial port device
99
//! Note this example will not work with the regular executors in embassy_executor
1010
#![no_std]
1111
#![no_main]
1212

1313
use embassy_executor::{Spawner, main};
14+
#[cfg(feature = "executor-platform")]
1415
use embassy_rp::executor::{Executor, InterruptExecutor};
16+
#[cfg(feature = "default-executor")]
17+
use embassy_executor::{Executor, InterruptExecutor};
1518
use embassy_rp::interrupt::{InterruptExt, Priority};
1619
use embassy_rp::multicore::{CoreId, Stack, current_core, spawn_core1};
1720
use embassy_rp::peripherals::USB;

0 commit comments

Comments
 (0)