Microchip® Advanced Software Framework

wdt.h File Reference

WDT driver for WDT module from revision 4.0.0 for AVR32 UC3.

Copyright (c) 2010-2018 Microchip Technology Inc. and its subsidiaries.

Data Structures

struct  wdt_opt_t
 WDT startup options. More...
 

Macros

#define AVR32_SCIF_OSC32_FREQUENCY   32768
 
#define WDT_BASIC_MODE   0x0
 WDT Basic Mode. More...
 
#define WDT_CLOCK_SOURCE_SELECT_OSC32K   0x1
 WDT Clock Source Select 32K Oscillator. More...
 
#define WDT_CLOCK_SOURCE_SELECT_RCSYS   0x0
 WDT Clock Source Select RCOSC. More...
 
#define WDT_WINDOW_MODE   0x1
 WDT Window Mode. More...
 

Functions

void wdt_clear (void)
 Clears the WatchDog Timer. More...
 
void wdt_disable (void)
 Disables the WatchDog Timer. More...
 
uint64_t wdt_enable (wdt_opt_t *opt)
 Enables the WatchDog Timer with the us_timeout_period time-out period saturated to the supported range and rounded up to the nearest supported greater time-out period. More...
 
int64_t wdt_get_us_timeout_period (wdt_opt_t *opt)
 Gets the time-out period of the WatchDog Timer in microseconds. More...
 
void wdt_reenable (void)
 Re-enables the WatchDog Timer with the last time-out period configured. More...
 
void wdt_reset_mcu (void)
 Resets the MCU with the WatchDog Timer as fast as possible. More...