RTEMS  5.1
Functions
wdt.h 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. 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

Purpose

Interface for Watchdog Timer (WDT) controller.

Usage

  1. Enable watchdog with given mode using WDT_Enable().
  2. Disable watchdog using WDT_Disable()
  3. Restart the watchdog using WDT_Restart().
  4. Get watchdog status using WDT_GetStatus().
  5. Calculate watchdog period value using WDT_GetPeriod().

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.