esp-hal/esp-wifi/src/memory_fence.rs
Scott Mabin ba63beb3b2
Move binary logging to sys crate (#2183)
* 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
2024-09-19 15:19:54 +00:00

12 lines
178 B
Rust

pub(crate) fn memory_fence() {
#[cfg(xtensa)]
unsafe {
core::arch::asm!("memw");
}
#[cfg(riscv)]
unsafe {
core::arch::asm!("fence");
}
}