mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-30 22:01:11 +00:00

* Move binary logging to sys crate * make ieee take radio clks by value * rename wifi-logs to binary-logs and fix compilation * update sys to use correct size types * move rtc_clk_xtal_freq_get to esp-hal * changelogs and migration guide * s/wifi-logs/sys-logs/g * activate log features for esp-wifi-sys * ble log fix c2 * fix logs using latest sys rev * fix warning
12 lines
178 B
Rust
12 lines
178 B
Rust
pub(crate) fn memory_fence() {
|
|
#[cfg(xtensa)]
|
|
unsafe {
|
|
core::arch::asm!("memw");
|
|
}
|
|
|
|
#[cfg(riscv)]
|
|
unsafe {
|
|
core::arch::asm!("fence");
|
|
}
|
|
}
|