Zephyr API 3.6.99
Loading...
Searching...
No Matches
task_wdt.h File Reference

Task watchdog header file. More...

#include <zephyr/types.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>

Go to the source code of this file.

Typedefs

typedef void(* task_wdt_callback_t) (int channel_id, void *user_data)
 Task watchdog callback.
 

Functions

int task_wdt_init (const struct device *hw_wdt)
 Initialize task watchdog.
 
int task_wdt_add (uint32_t reload_period, task_wdt_callback_t callback, void *user_data)
 Install new timeout.
 
int task_wdt_delete (int channel_id)
 Delete task watchdog channel.
 
int task_wdt_feed (int channel_id)
 Feed specified watchdog channel.
 

Detailed Description

Task watchdog header file.

This header file declares prototypes for the task watchdog APIs.

The task watchdog can be used to monitor correct operation of individual threads. It can be used together with a hardware watchdog as a fallback.