![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
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. | |
| #define WDT_OSC (CGU_IRC_FREQ) |
WDT oscillator frequency value
Definition at line 45 of file wwdt_18xx_43xx.h.
| #define WWDT_TICKS_MAX 0xFFFFFF |
Maximum tick count for timer value and window value
Definition at line 51 of file wwdt_18xx_43xx.h.
| #define WWDT_TICKS_MIN 0xFF |
Minimum tick count for timer value and window value
Definition at line 48 of file wwdt_18xx_43xx.h.
| STATIC INLINE void Chip_WWDT_ClearStatusFlag | ( | LPC_WWDT_T * | pWWDT, |
| uint32_t | status | ||
| ) |
Clear WWDT interrupt status flags.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
| status | : Or'ed value of status flag(s) that you want to clear, should be:
|
Definition at line 177 of file wwdt_18xx_43xx.h.
| STATIC INLINE void Chip_WWDT_DeInit | ( | LPC_WWDT_T * | pWWDT | ) |
Shutdown the Watchdog timer.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
Definition at line 65 of file wwdt_18xx_43xx.h.
| STATIC INLINE void Chip_WWDT_Feed | ( | LPC_WWDT_T * | pWWDT | ) |
Feed watchdog timer.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
Definition at line 88 of file wwdt_18xx_43xx.h.
| STATIC INLINE uint32_t Chip_WWDT_GetCurrentCount | ( | LPC_WWDT_T * | pWWDT | ) |
Get the current value of WDT.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
Definition at line 187 of file wwdt_18xx_43xx.h.
| STATIC INLINE uint32_t Chip_WWDT_GetStatus | ( | LPC_WWDT_T * | pWWDT | ) |
Read WWDT status flag.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
Definition at line 164 of file wwdt_18xx_43xx.h.
| void Chip_WWDT_Init | ( | LPC_WWDT_T * | pWWDT | ) |
Initialize the Watchdog timer.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
Definition at line 51 of file wwdt_11xx.c.
| STATIC INLINE void Chip_WWDT_SetOption | ( | LPC_WWDT_T * | pWWDT, |
| uint32_t | options | ||
| ) |
Enable watchdog timer options.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
| options | : An or'ed set of options of values WWDT_WDMOD_WDEN, WWDT_WDMOD_WDRESET, and WWDT_WDMOD_WDPROTECT |
Definition at line 130 of file wwdt_18xx_43xx.h.
| STATIC INLINE void Chip_WWDT_SetTimeOut | ( | LPC_WWDT_T * | pWWDT, |
| uint32_t | timeout | ||
| ) |
Set WDT timeout constant value used for feed.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
| timeout | : WDT timeout in ticks, between WWDT_TICKS_MIN and WWDT_TICKS_MAX |
Definition at line 76 of file wwdt_18xx_43xx.h.
| STATIC INLINE void Chip_WWDT_SetWarning | ( | LPC_WWDT_T * | pWWDT, |
| uint32_t | timeout | ||
| ) |
Set WWDT warning interrupt.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
| timeout | : WDT warning in ticks, between 0 and 1023 |
Definition at line 101 of file wwdt_18xx_43xx.h.
| STATIC INLINE void Chip_WWDT_SetWindow | ( | LPC_WWDT_T * | pWWDT, |
| uint32_t | timeout | ||
| ) |
Set WWDT window time.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
| timeout | : WDT window in ticks, between WWDT_TICKS_MIN and WWDT_TICKS_MAX |
Definition at line 115 of file wwdt_18xx_43xx.h.
| STATIC INLINE void Chip_WWDT_Start | ( | LPC_WWDT_T * | pWWDT | ) |
Enable WWDT activity.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
Definition at line 154 of file wwdt_18xx_43xx.h.
| STATIC INLINE void Chip_WWDT_UnsetOption | ( | LPC_WWDT_T * | pWWDT, |
| uint32_t | options | ||
| ) |
Disable/clear watchdog timer options.
| pWWDT | : The base of WatchDog Timer peripheral on the chip |
| options | : An or'ed set of options of values WWDT_WDMOD_WDEN, WWDT_WDMOD_WDRESET, and WWDT_WDMOD_WDPROTECT |
Definition at line 144 of file wwdt_18xx_43xx.h.