MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
WDOG API Specification

Overview

This section describes functions and macros of the driver's API.

Macros

#define WDOG_SetTmrVal(period)
 Sets watchdog timer register. More...
 
#define WDOG_WriteUnlockSeq()
 Executes unlock sequence. More...
 
#define WDOG_WriteRefreshSeq()
 Refreshes watchdog timer. More...
 
#define WDOG_Disable()
 Disables the watchdog timer. More...
 
#define WDOG_GetRSTCNT()
 Returns number of times the watchdog resets the system. More...
 
#define WDOG_Init(cfg)
 Watchdog timer initialization. More...
 

Macro Definition Documentation

#define WDOG_SetTmrVal (   period)

This macro sets timeout value of the watchdog timer.

Parameters
periodWatchdog 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.
#define WDOG_Disable ( )

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.
#define WDOG_Init (   cfg)

This function initializes the watchdog timer.

Parameters
cfgSelect one of the WDOG Configuration Structures.
Note
Implemented as an inline macro.
See also
WDOG_Disable