1 /* 2 * SPDX-FileCopyrightText: 2010-2021 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #pragma once 8 9 #include <sdkconfig.h> 10 #include "soc/dport_access.h" 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #if defined(BOOTLOADER_BUILD) || defined(CONFIG_FREERTOS_UNICORE) || !SOC_DPORT_WORKAROUND 17 #define DPORT_STALL_OTHER_CPU_START() 18 #define DPORT_STALL_OTHER_CPU_END() 19 #else 20 #include "esp_ipc_isr.h" 21 #define DPORT_STALL_OTHER_CPU_START() esp_ipc_isr_stall_other_cpu() 22 #define DPORT_STALL_OTHER_CPU_END() esp_ipc_isr_release_other_cpu() 23 #endif 24 25 #ifdef __cplusplus 26 } 27 #endif 28