Watchdog Functions
[AT91 Support]

AT91 on-chip watchdog timer. More...

Collaboration diagram for Watchdog Functions:

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.

Detailed Description

AT91 on-chip watchdog 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 67 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 At91Reset(), and 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 118 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 129 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 143 of file wdt_at91.c.

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

Referenced by NutWatchDogEnable().


© 2000-2010 by contributors - visit http://www.ethernut.de/