Function esp_idf_svc::sys::esp_cpu_set_breakpoint
source ยท pub unsafe extern "C" fn esp_cpu_set_breakpoint(
bp_num: i32,
bp_addr: *const c_void,
) -> i32
Expand description
@brief Set and enable a hardware breakpoint on the current CPU
@note This function is meant to be called by the panic handler to set a breakpoint for an attached debugger during a panic. @note Overwrites previously set breakpoint with same breakpoint number. @param bp_num Hardware breakpoint number [0..SOC_CPU_BREAKPOINTS_NUM - 1] @param bp_addr Address to set a breakpoint on @return ESP_OK if breakpoint is set. Failure otherwise