2022-01-12 01:53:47 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2022-06-07 03:01:05 -04:00
|
|
|
#include "esp_attr.h"
|
2022-01-12 01:53:47 -05:00
|
|
|
#include "esp_cpu.h"
|
2022-03-31 03:07:51 -04:00
|
|
|
#include "esp_memory_utils.h"
|
2022-06-07 03:01:05 -04:00
|
|
|
#include "hal/cpu_hal.h"
|
2022-01-12 01:53:47 -05:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static inline void __attribute__((always_inline)) compare_and_set_native(volatile uint32_t *addr, uint32_t compare, uint32_t *set)
|
|
|
|
{
|
|
|
|
cpu_ll_compare_and_set_native(addr, compare, set);
|
|
|
|
}
|
|
|
|
|
|
|
|
void compare_and_set_extram(volatile uint32_t *addr, uint32_t compare, uint32_t *set);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|