LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wwdt_001.h File Reference
#include "sys_config.h"
#include "cmsis.h"

Go to the source code of this file.

Data Structures

struct  IP_WWDT_001_T
 Windowed Watchdog register block structure. More...
 

Macros

#define WATCHDOG_WINDOW_SUPPORT
 
#define WWDT_WDMOD_BITMASK   ((uint32_t) 0x1F)
 Watchdog Mode register definitions.
 
#define WWDT_WDMOD_WDEN   ((uint32_t) (1 << 0))
 
#define WWDT_WDMOD_WDRESET   ((uint32_t) (1 << 1))
 
#define WWDT_WDMOD_WDTOF   ((uint32_t) (1 << 2))
 
#define WWDT_WDMOD_WDINT   ((uint32_t) (1 << 3))
 
#define WWDT_WDMOD_WDPROTECT   ((uint32_t) (1 << 4))
 

Functions

void IP_WWDT_Init (IP_WWDT_001_T *pWWDT)
 Initialize the Watchdog Timer.
 
STATIC INLINE void IP_WWDT_DeInit (IP_WWDT_001_T *pWWDT)
 De-initialize the Watchdog Timer.
 
STATIC INLINE void IP_WWDT_SetTimeOut (IP_WWDT_001_T *pWWDT, uint32_t timeout)
 Set WDT timeout constant value used for feed.
 
STATIC INLINE void IP_WWDT_Feed (IP_WWDT_001_T *pWWDT)
 Feed watchdog timer.
 
STATIC INLINE void IP_WWDT_SetWarning (IP_WWDT_001_T *pWWDT, uint32_t timeout)
 Set WWDT warning interrupt.
 
STATIC INLINE void IP_WWDT_SetWindow (IP_WWDT_001_T *pWWDT, uint32_t timeout)
 Set WWDT window time.
 
STATIC INLINE void IP_WWDT_SetOption (IP_WWDT_001_T *pWWDT, uint32_t options)
 Enable watchdog timer options.
 
STATIC INLINE void IP_WWDT_UnsetOption (IP_WWDT_001_T *pWWDT, uint32_t options)
 Disable/clear watchdog timer options.
 
STATIC INLINE void IP_WWDT_Start (IP_WWDT_001_T *pWWDT)
 Enable WWDT activity.
 
STATIC INLINE uint32_t IP_WWDT_GetStatus (IP_WWDT_001_T *pWWDT)
 Read WWDT status flag.
 
void IP_WWDT_ClearStatusFlag (IP_WWDT_001_T *pWWDT, uint32_t status)
 Clear WWDT interrupt status flags.
 
STATIC INLINE uint32_t IP_WWDT_GetCurrentCount (IP_WWDT_001_T *pWWDT)
 Get the current value of WDT.