This section describes functions and macros of the driver's API.
#define WDOG_SetTmrVal |
( |
|
period | ) |
|
This macro sets timeout value of the watchdog timer.
- Parameters
-
period | Watchdog timeout in number of clock cycles (4 to 4294967296). |
- Note
- Implemented as an inline macro.
#define WDOG_WriteUnlockSeq |
( |
| ) |
|
This macro executes unlock sequence for allowing updates to write-once WDOG control/configuration bits.
- Note
- Implemented as an inline macro.
#define WDOG_WriteRefreshSeq |
( |
| ) |
|
This macro refreshes the watchdog timer.
- Note
- Implemented as an inline macro.
- Warning
- Watchdog IP requires at least 2 watchdog clock cycles to acknowledge refresh sequence. If next refresh sequence comes prior acknowledge the watchdog will reset MCU.
This macro disables the watchdog timer permanently.
- Note
- Implemented as an inline macro.
- See also
- WDOG_Init
#define WDOG_GetRSTCNT |
( |
| ) |
|
This macro returns number of times the watchdog resets the system (WDOG_RSTCNT register).
- Returns
- content of RSTCNT register.
- Note
- Implemented as an inline macro.
This function initializes the watchdog timer.
- Parameters
-
- Note
- Implemented as an inline macro.
- See also
- WDOG_Disable