Reinforced Safety Watchdog Timer (RSWDT) driver for SAM.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
#include "rswdt.h"
Macros | |
#define | RSWDT_KEY_PASSWORD 0xC4000000 |
#define | RSWDT_MAX_VALUE 4095 |
#define | RSWDT_SLCK_DIV 128 |
Functions | |
void | rswdt_disable (Rswdt *p_rswdt) |
Disable the reinforced safety watchdog timer. More... | |
uint32_t | rswdt_get_status (Rswdt *p_rswdt) |
Check the reinforced safety watchdog timer status. More... | |
uint32_t | rswdt_get_timeout_value (uint32_t ul_us, uint32_t ul_sclk) |
Get counter value or permitted range value of reinforced safety watchdog timer from the desired timeout period (in us). More... | |
uint32_t | rswdt_get_us_timeout_period (Rswdt *p_rswdt, uint32_t ul_sclk) |
Get the timeout period of the Reinforced Safety WatchDog Timer in microseconds. More... | |
void | rswdt_init (Rswdt *p_rswdt, uint32_t ul_mode, uint16_t us_counter, uint16_t us_delta) |
Initialize reinforced safety watchdog timer with the given mode. More... | |
void | rswdt_restart (Rswdt *p_rswdt) |
Restart the reinforced safety watchdog timer. More... | |