RTEMS  5.1
Functions
wdt.c File Reference
#include "chip.h"
#include <stdint.h>

Functions

void WDT_Enable (Wdt *pWDT, uint32_t dwMode)
 Enable watchdog with given mode. More...
 
void WDT_Disable (Wdt *pWDT)
 Disable watchdog. More...
 
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. More...
 

Detailed Description

Implementation of Watchdog Timer (WDT) controller.

Function Documentation

◆ WDT_Disable()

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.

◆ WDT_Enable()

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
dwModeWDT mode to be set

◆ WDT_GetPeriod()

uint32_t WDT_GetPeriod ( uint32_t  dwMs)

Watchdog get period.

Parameters
dwMsdesired watchdog period in millisecond.