1 /* 2 * Copyright (c) 2025 Google LLC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief ARM Cortex-M debug monitor functions interface based on DWT 10 * 11 */ 12 13 #ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_DEBUG_H_ 14 #define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_DEBUG_H_ 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 /** 21 * @brief Assess whether a debug monitor event should be treated as an error 22 * 23 * This routine checks the status of a debug_monitor() exception, and 24 * evaluates whether this needs to be considered as a processor error. 25 * 26 * @return true if the DM exception is a processor error, otherwise false 27 */ 28 bool z_arm_debug_monitor_event_error_check(void); 29 30 int z_arm_debug_enable_null_pointer_detection(void); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_DEBUG_H_ */ 37