SAM Watchdog Driver.
Copyright (c) 2012-2020 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | wdt_conf |
Watchdog Timer configuration structure. More... | |
Enumerations | |
enum | wdt_period { WDT_PERIOD_NONE = 0, WDT_PERIOD_8CLK = 1, WDT_PERIOD_16CLK = 2, WDT_PERIOD_32CLK = 3, WDT_PERIOD_64CLK = 4, WDT_PERIOD_128CLK = 5, WDT_PERIOD_256CLK = 6, WDT_PERIOD_512CLK = 7, WDT_PERIOD_1024CLK = 8, WDT_PERIOD_2048CLK = 9, WDT_PERIOD_4096CLK = 10, WDT_PERIOD_8192CLK = 11, WDT_PERIOD_16384CLK = 12 } |
Watchdog Timer period configuration enum. More... | |
Functions | |
Configuration and Initialization | |
static bool | wdt_is_syncing (void) |
Determines if the hardware module(s) are currently synchronizing to the bus. More... | |
static void | wdt_get_config_defaults (struct wdt_conf *const config) |
Initializes a Watchdog Timer configuration structure to defaults. More... | |
enum status_code | wdt_set_config (const struct wdt_conf *const config) |
Sets up the WDT hardware module based on the configuration. More... | |
static bool | wdt_is_locked (void) |
Determines if the Watchdog timer is currently locked in an enabled state. More... | |
Timeout and Early Warning Management | |
static void | wdt_clear_early_warning (void) |
Clears the Watchdog timer early warning period elapsed flag. More... | |
static bool | wdt_is_early_warning (void) |
Determines if the Watchdog timer early warning period has elapsed. More... | |
void | wdt_reset_count (void) |
Resets the count of the running Watchdog Timer that was previously enabled. More... | |