RTEMS 6.1-rc4
Loading...
Searching...
No Matches
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.
 
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.

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.