Function esp_idf_hal::sys::esp_task_wdt_add
source ยท pub unsafe extern "C" fn esp_task_wdt_add(
task_handle: *mut tskTaskControlBlock,
) -> i32
Expand description
@brief Subscribe a task to the Task Watchdog Timer (TWDT)
This function subscribes a task to the TWDT. Each subscribed task must periodically call esp_task_wdt_reset() to prevent the TWDT from elapsing its timeout period. Failure to do so will result in a TWDT timeout.
@param task_handle Handle of the task. Input NULL to subscribe the current running task to the TWDT @return
- ESP_OK: Successfully subscribed the task to the TWDT
- Other: Failed to subscribe task