Skip to content

Commit 2427d1a

Browse files
committed
samples: replace BOARD with BOARD_TARGET
BOARD_TARGET is more specific about which core runs the sample. Signed-off-by: Marcin Szymczyk <[email protected]>
1 parent 4d66484 commit 2427d1a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

samples/async-philosophers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const NUM_PHIL: usize = 6;
2828
extern "C" fn rust_main() {
2929
printkln!(
3030
"Async dining philosophers {}",
31-
zephyr::kconfig::CONFIG_BOARD
31+
zephyr::kconfig::CONFIG_BOARD_TARGET
3232
);
3333
printkln!("Time tick: {}", zephyr::time::SYS_FREQUENCY);
3434

samples/embassy/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extern "C" fn rust_main() {
5959

6060
info!(
6161
"Starting Embassy executor on {}",
62-
zephyr::kconfig::CONFIG_BOARD
62+
zephyr::kconfig::CONFIG_BOARD_TARGET
6363
);
6464

6565
let executor = EXECUTOR_MAIN.init(Executor::new());

samples/hello_world/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ extern "C" fn rust_main() {
1111
zephyr::set_logger().unwrap();
1212
}
1313

14-
info!("Hello world from Rust on {}", zephyr::kconfig::CONFIG_BOARD);
14+
info!("Hello world from Rust on {}", zephyr::kconfig::CONFIG_BOARD_TARGET);
1515
}

samples/philosophers/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ trait ForkSync: core::fmt::Debug + Sync + Send {
6565

6666
#[no_mangle]
6767
extern "C" fn rust_main() {
68-
printkln!("Hello world from Rust on {}", zephyr::kconfig::CONFIG_BOARD);
68+
printkln!("Hello world from Rust on {}", zephyr::kconfig::CONFIG_BOARD_TARGET);
6969
printkln!("Time tick: {}", zephyr::time::SYS_FREQUENCY);
7070

7171
let stats = &STAT_MUTEX;

0 commit comments

Comments
 (0)