Wdt#
- group bsp_wdt
Watchdog timer driver implementation.
- Author
Alexandre Abadie alexandre.abadie@inria.fr
- Copyright
Inria, 2024
Typedefs
-
typedef void (*wdt_timeout_cb_t)(void *ctx)#
Timeout callback function prototype.
Functions
-
void db_wdt_init(uint32_t timeout, wdt_timeout_cb_t cb, void *ctx)#
Initialize the watchdog timer.
- Parameters:
timeout – [in] Timeout in seconds
cb – [in] Callback function called on timeout
ctx – [in] Context passed to the callback function
-
void db_wdt_start(void)#
Start the watchdog timer.
-
void db_wdt_reload(void)#
Reload the watchdog timer.