Skip to content

Commit

Permalink
Fail compilation on unknown architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Sep 19, 2024
1 parent b049aa9 commit b99c074
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod single_core {
core::arch::asm!("rsil {0}, 5", out(reg) token);
token
} else {
panic!()
compile_error!("Unsupported architecture")
}
}
}
Expand All @@ -28,7 +28,7 @@ mod single_core {
"wsr.ps {0}",
"rsync", in(reg) token)
} else {
panic!()
compile_error!("Unsupported architecture")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/embassy_multicore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async fn main(_spawner: Spawner) {
static LED_CTRL: StaticCell<Signal<CriticalSectionRawMutex, bool>> = StaticCell::new();
let led_ctrl_signal = &*LED_CTRL.init(Signal::new());

let led = Output::new(io.pins.gpio0.degrade(), Level::Low);
let led = Output::new(io.pins.gpio0, Level::Low);

let _guard = cpu_control
.start_app_core(unsafe { &mut *addr_of_mut!(APP_CORE_STACK) }, move || {
Expand Down

0 comments on commit b99c074

Please sign in to comment.