mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 13:00:19 +00:00
refactor(esp32c61): bus_monitor backward compatible refactor
This commit is contained in:
21
components/riscv/rv_utils.c
Normal file
21
components/riscv/rv_utils.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "soc/soc_caps.h"
|
||||
#if SOC_ASSIST_DEBUG_SUPPORTED
|
||||
#include "hal/assist_debug_ll.h"
|
||||
#endif
|
||||
#include "esp_attr.h"
|
||||
|
||||
bool rv_utils_dbgr_is_attached(void)
|
||||
{
|
||||
#if SOC_ASSIST_DEBUG_SUPPORTED
|
||||
return assist_debug_ll_is_debugger_active();
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
Reference in New Issue
Block a user