dport_access.h 605 B

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