mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
refactor(panic): route panic handlers through esp_sys_event
Let panic-related components register their hooks through esp_sys_event so panic sequencing stays extensible without hardcoded esp_system dependencies.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -90,6 +90,15 @@ void panic_prepare_frame_from_ctx(void* frame);
|
||||
|
||||
void panic_clear_active_interrupts(const void* frame);
|
||||
|
||||
/**
|
||||
* @brief Disable all watchdog timers
|
||||
*
|
||||
* This function disables all watchdog timers (Timer Group WDTs and RTC WDT).
|
||||
* It is intended for use by panic handlers that take over execution (e.g., gdbstub)
|
||||
* or that halt the system.
|
||||
*/
|
||||
void panic_disable_all_wdts(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user