SAMV71 Xplained Ultra Software Package 1.4

wdt.c File Reference

#include "chip.h"
#include <stdint.h>

Go to the source code of this file.

Functions

void WDT_Enable (Wdt *pWDT, uint32_t dwMode)
 Enable watchdog with given mode.
void WDT_Disable (Wdt *pWDT)
 Disable watchdog.
void WDT_Restart (Wdt *pWDT)
 Watchdog restart.
uint32_t WDT_GetStatus (Wdt *pWDT)
 Watchdog get status.
uint32_t WDT_GetPeriod (uint32_t dwMs)
 Watchdog get period.

Detailed Description

Implementation of Watchdog Timer (WDT) controller.

Definition in file wdt.c.


Function Documentation

void WDT_Disable ( Wdt pWDT  ) 

Disable watchdog.

Note:
The Watchdog Mode Register (WDT_MR) can be written only once. Only a processor reset resets it.

Definition at line 101 of file wdt.c.

void WDT_Enable ( Wdt pWDT,
uint32_t  dwMode 
)

Enable watchdog with given mode.

Note:
The Watchdog Mode Register (WDT_MR) can be written only once. Only a processor reset resets it.
Parameters:
dwMode WDT mode to be set

Definition at line 90 of file wdt.c.

uint32_t WDT_GetPeriod ( uint32_t  dwMs  ) 

Watchdog get period.

Parameters:
dwMs desired watchdog period in millisecond.

Definition at line 127 of file wdt.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines