Watchdog Functions
[AT91 Support]

Collaboration diagram for Watchdog Functions:

Detailed Description

AT91 on-chip watchdog timer.


Functions

uint32_t At91WatchDogStart (uint32_t ms, uint32_t xmode)
 Start the AT91 hardware watch dog timer.
void At91WatchDogRestart (void)
 Re-start the AT91 hardware watch dog timer.
void At91WatchDogDisable (void)
 Disable the AT91 hardware watch dog timer.
void At91WatchDogEnable (void)
 Enable the AT91 hardware watch dog timer.


Function Documentation

uint32_t At91WatchDogStart ( uint32_t  ms,
uint32_t  xmode 
)

Start the AT91 hardware watch dog timer.

For portability, applications should use the platform independent Watchdog Driver API.

Definition at line 63 of file wdt_at91.c.

References At91WatchDogDisable(), At91WatchDogRestart(), NutGetCpuClock(), outr, WD_CKEY, WD_CMR, WD_HPCV, WD_OKEY, WD_OMR, WD_RSTEN, WD_WDCLKS_MCK1024, WD_WDCLKS_MCK128, WD_WDCLKS_MCK32, WD_WDCLKS_MCK8, and WD_WDEN.

Referenced by NutWatchDogStart().

void At91WatchDogRestart ( void   ) 

Re-start the AT91 hardware watch dog timer.

For portability, applications should use the platform independent Watchdog Driver API.

Definition at line 114 of file wdt_at91.c.

References outr, WD_CR, and WD_RSTKEY.

Referenced by At91WatchDogEnable(), At91WatchDogStart(), and NutWatchDogRestart().

void At91WatchDogDisable ( void   ) 

Disable the AT91 hardware watch dog timer.

For portability, applications should use the platform independent Watchdog Driver API.

Definition at line 125 of file wdt_at91.c.

References inr, outr, WD_OKEY, WD_OMR, and WD_WDEN.

Referenced by At91WatchDogStart(), and NutWatchDogDisable().

void At91WatchDogEnable ( void   ) 

Enable the AT91 hardware watch dog timer.

For portability, applications should use the platform independent Watchdog Driver API.

Definition at line 139 of file wdt_at91.c.

References At91WatchDogRestart(), inr, outr, WD_OKEY, WD_OMR, and WD_WDEN.

Referenced by NutWatchDogEnable().


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/