#include "chip.h"
#include <stdint.h>
Go to the source code of this file.
|
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.
|
|
Purpose
Interface for Watchdog Timer (WDT) controller.
Usage
- Enable watchdog with given mode using WDT_Enable().
- Disable watchdog using WDT_Disable()
- Restart the watchdog using WDT_Restart().
- Get watchdog status using WDT_GetStatus().
- Calculate watchdog period value using WDT_GetPeriod().
◆ 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
-
◆ WDT_GetPeriod()
uint32_t WDT_GetPeriod |
( |
uint32_t |
dwMs | ) |
|
Watchdog get period.
- Parameters
-
dwMs | desired watchdog period in millisecond. |