LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wwdt_18xx_43xx.h File Reference

Go to the source code of this file.

Macros

#define WDT_OSC   (CGU_IRC_FREQ)
 
#define WWDT_TICKS_MIN   0xFF
 
#define WWDT_TICKS_MAX   0xFFFFFF
 

Functions

void Chip_WWDT_Init (LPC_WWDT_T *pWWDT)
 Initialize the Watchdog timer.
 
STATIC INLINE void Chip_WWDT_DeInit (LPC_WWDT_T *pWWDT)
 Shutdown the Watchdog timer.
 
STATIC INLINE void Chip_WWDT_SetTimeOut (LPC_WWDT_T *pWWDT, uint32_t timeout)
 Set WDT timeout constant value used for feed.
 
STATIC INLINE void Chip_WWDT_Feed (LPC_WWDT_T *pWWDT)
 Feed watchdog timer.
 
STATIC INLINE void Chip_WWDT_SetWarning (LPC_WWDT_T *pWWDT, uint32_t timeout)
 Set WWDT warning interrupt.
 
STATIC INLINE void Chip_WWDT_SetWindow (LPC_WWDT_T *pWWDT, uint32_t timeout)
 Set WWDT window time.
 
STATIC INLINE void Chip_WWDT_SetOption (LPC_WWDT_T *pWWDT, uint32_t options)
 Enable watchdog timer options.
 
STATIC INLINE void Chip_WWDT_UnsetOption (LPC_WWDT_T *pWWDT, uint32_t options)
 Disable/clear watchdog timer options.
 
STATIC INLINE void Chip_WWDT_Start (LPC_WWDT_T *pWWDT)
 Enable WWDT activity.
 
STATIC INLINE uint32_t Chip_WWDT_GetStatus (LPC_WWDT_T *pWWDT)
 Read WWDT status flag.
 
STATIC INLINE void Chip_WWDT_ClearStatusFlag (LPC_WWDT_T *pWWDT, uint32_t status)
 Clear WWDT interrupt status flags.
 
STATIC INLINE uint32_t Chip_WWDT_GetCurrentCount (LPC_WWDT_T *pWWDT)
 Get the current value of WDT.