mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
TWDT: the Kconfig option ESP_TASK_WDT_EN is now used to enable Task Watchdog
This commit is contained in:
@@ -61,7 +61,7 @@ void esp_crosscore_int_send_gdb_call(int core_id);
|
||||
*/
|
||||
void esp_crosscore_int_send_print_backtrace(int core_id);
|
||||
|
||||
#if CONFIG_ESP_TASK_WDT
|
||||
#if CONFIG_ESP_TASK_WDT_EN
|
||||
/**
|
||||
* Send an interrupt to a CPU indicating it call `task_wdt_timeout_abort_xtensa`.
|
||||
* This will make the CPU abort, using the interrupted task frame.
|
||||
@@ -74,7 +74,7 @@ void esp_crosscore_int_send_print_backtrace(int core_id);
|
||||
*/
|
||||
void esp_crosscore_int_send_twdt_abort(int core_id);
|
||||
|
||||
#endif // CONFIG_ESP_TASK_WDT
|
||||
#endif // CONFIG_ESP_TASK_WDT_EN
|
||||
#endif // !CONFIG_IDF_TARGET_ESP32C3 && !CONFIG_IDF_TARGET_ESP32H2 && !CONFIG_IDF_TARGET_ESP32C2
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_err.h"
|
||||
|
||||
#if CONFIG_ESP_TASK_WDT
|
||||
#if CONFIG_ESP_TASK_WDT_EN
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -29,7 +29,7 @@ typedef void (*twdt_isr_callback)(void*);
|
||||
/**
|
||||
* @brief Stop the Task Watchdog Timer (TWDT)
|
||||
*
|
||||
* This function will temporarily stop the timer until it is restarted/resumed by a call to esp_task_wdt_restart().
|
||||
* This function will temporarily stop the timer until it is restarted by a call to esp_task_wdt_restart().
|
||||
|
||||
* @note esp_task_wdt_stop() must not be called by multiple tasks simultaneously.
|
||||
* @return
|
||||
@@ -41,7 +41,7 @@ esp_err_t esp_task_wdt_stop(void);
|
||||
/**
|
||||
* @brief Restart the Task Watchdog Timer (TWDT)
|
||||
*
|
||||
* This function will restart/resume the timer after it has been stopped by esp_task_wdt_stop().
|
||||
* This function will restart the timer after it has been stopped by esp_task_wdt_stop().
|
||||
|
||||
* @note esp_task_wdt_restart() must not be called by multiple tasks simultaneously.
|
||||
* @return
|
||||
@@ -54,4 +54,4 @@ esp_err_t esp_task_wdt_restart(void);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // CONFIG_ESP_TASK_WDT
|
||||
#endif // CONFIG_ESP_TASK_WDT_EN
|
||||
|
||||
Reference in New Issue
Block a user