#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Data Structures | |
struct | wdt_attr_t |
Enumerations | |
enum | wdt_result_t { WDT_RESULT_OK , WDT_RESULT_INVALID , WDT_RESULT_UNSUPPORTED , WDT_RESULT_ERR , TOTAL_WDT_RESULT } |
enum | wdt_feed_mode_t { WDT_FEED_MODE_WINDOW , WDT_FEED_MODE_ANYTIME , TOTAL_WDT_FEED_MODE } |
enum | wdt_feed_window_pcnt_t { WDT_FEED_WINDOW_PCNT_25 , WDT_FEED_WINDOW_PCNT_50 , WDT_FEED_WINDOW_PCNT_75 , TOTAL_WDT_FEED_WINDOW_PCNT } |
Functions | |
wdt_result_t | hal_watchdog_init (const wdt_attr_t attr) |
Initialize watchdog. | |
wdt_result_t | hal_watchdog_feed (void) |
Update and feed watchdog counter. | |
wdt_result_t | hal_watchdog_enable (void) |
Enable and start watchdog counter. | |
wdt_result_t | hal_watchdog_disable (void) |
Disable and stop watchdog counter. | |