Hardware watchdog timer abstraction layer. More...
#include <stdbool.h>#include <stdint.h>

Go to the source code of this file.
Macros | |
| #define | HW_WATCHDOG_DEFAULT_DEVICE "/dev/watchdog0" |
| Default device path used by hw_watchdog_init(). More... | |
Typedefs | |
| typedef struct hw_watchdog_t | hw_watchdog_t |
| Watchdog adapter handle. | |
Functions | |
| hw_watchdog_t * | hw_watchdog_init (void) |
| Initialize the watchdog singleton. More... | |
| hw_watchdog_t * | hw_watchdog_init_device (const char *device) |
| Initialize the watchdog singleton for a specific device path. More... | |
| void | hw_watchdog_deinit (hw_watchdog_t *watchdog) |
| Deinitialize the watchdog singleton. More... | |
| uint32_t | hw_watchdog_maxtimeout_ms (void) |
| Return the maximum supported watchdog timeout in milliseconds. More... | |
| bool | hw_watchdog_did_reset (hw_watchdog_t *watchdog) |
| Report whether the last reboot/reset was caused by the watchdog. More... | |
| void | hw_watchdog_enable (hw_watchdog_t *watchdog, bool enable) |
| Enable or disable watchdog feeding mode. More... | |
| void | hw_watchdog_reset (hw_watchdog_t *watchdog, uint32_t delay_ms) |
| Trigger a delayed device reset (reboot). More... | |
Hardware watchdog timer abstraction layer.
Definition in file watchdog.h.