Skip to content

Commit 33e81e5

Browse files
committed
Merge branch 'feat/h4_introduce_step2_3' into 'master'
feat(esp32h4): add soc register header files (stage 3/8, part 3/3) See merge request espressif/esp-idf!37092
2 parents 5f2a7f4 + 62700fa commit 33e81e5

37 files changed

+3170
-85
lines changed

components/riscv/include/riscv/rv_utils.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
#include <stdint.h>
1010

1111
#include "soc/soc_caps.h"
12+
#if SOC_ASSIST_DEBUG_SUPPORTED
1213
#include "soc/assist_debug_reg.h"
14+
#endif
1315
#include "soc/interrupt_reg.h"
1416
#include "esp_attr.h"
1517
#include "riscv/csr.h"
@@ -405,7 +407,11 @@ FORCE_INLINE_ATTR bool rv_utils_is_trigger_fired(int id)
405407

406408
FORCE_INLINE_ATTR bool rv_utils_dbgr_is_attached(void)
407409
{
410+
#if SOC_ASSIST_DEBUG_SUPPORTED
408411
return REG_GET_BIT(ASSIST_DEBUG_CORE_0_DEBUG_MODE_REG, ASSIST_DEBUG_CORE_0_DEBUG_MODULE_ACTIVE);
412+
#else
413+
return false;
414+
#endif
409415
}
410416

411417
FORCE_INLINE_ATTR void rv_utils_dbgr_break(void)

0 commit comments

Comments
 (0)