Function esp_idf_sys::esp_cpu_compare_and_set

source ยท
pub unsafe extern "C" fn esp_cpu_compare_and_set(
    addr: *mut u32,
    compare_value: u32,
    new_value: u32,
) -> bool
Expand description

@brief Atomic compare-and-set operation

@param addr Address of atomic variable @param compare_value Value to compare the atomic variable to @param new_value New value to set the atomic variable to @return Whether the atomic variable was set or not