Classes | |
| struct | LPC_WWDT_T |
| Windowed Watchdog register block structure. More... | |
Macros | |
| #define | WATCHDOG_WINDOW_SUPPORT |
| #define | WWDT_WDMOD_BITMASK ((uint32_t) 0x1F) |
| Watchdog Mode register definitions. More... | |
| #define | WWDT_WDMOD_WDEN ((uint32_t) (1 << 0)) |
| #define | WWDT_WDMOD_WDINT ((uint32_t) (1 << 3)) |
| #define | WWDT_WDMOD_WDPROTECT ((uint32_t) (1 << 4)) |
| #define | WWDT_WDMOD_WDRESET ((uint32_t) (1 << 1)) |
| #define | WWDT_WDMOD_WDTOF ((uint32_t) (1 << 2)) |
Functions | |
| void | Chip_WWDT_ClearStatusFlag (LPC_WWDT_T *pWWDT, uint32_t status) |
| Clear WWDT interrupt status flags. More... | |
| void | Chip_WWDT_DeInit (LPC_WWDT_T *pWWDT) |
| Shutdown the Watchdog timer. More... | |
| STATIC INLINE void | Chip_WWDT_Feed (LPC_WWDT_T *pWWDT) |
| Feed watchdog timer. More... | |
| STATIC INLINE uint32_t | Chip_WWDT_GetCurrentCount (LPC_WWDT_T *pWWDT) |
| Get the current value of WDT. More... | |
| STATIC INLINE uint32_t | Chip_WWDT_GetStatus (LPC_WWDT_T *pWWDT) |
| Read WWDT status flag. More... | |
| void | Chip_WWDT_Init (LPC_WWDT_T *pWWDT) |
| Initialize the Watchdog timer. More... | |
| STATIC INLINE void | Chip_WWDT_SetOption (LPC_WWDT_T *pWWDT, uint32_t options) |
| Enable watchdog timer options. More... | |
| STATIC INLINE void | Chip_WWDT_SetTimeOut (LPC_WWDT_T *pWWDT, uint32_t timeout) |
| Set WDT timeout constant value used for feed. More... | |
| STATIC INLINE void | Chip_WWDT_SetWarning (LPC_WWDT_T *pWWDT, uint32_t timeout) |
| Set WWDT warning interrupt. More... | |
| STATIC INLINE void | Chip_WWDT_SetWindow (LPC_WWDT_T *pWWDT, uint32_t timeout) |
| Set WWDT window time. More... | |
| STATIC INLINE void | Chip_WWDT_Start (LPC_WWDT_T *pWWDT) |
| Enable WWDT activity. More... | |
| STATIC INLINE void | Chip_WWDT_UnsetOption (LPC_WWDT_T *pWWDT, uint32_t options) |
| Disable/clear watchdog timer options. More... | |
| #define WATCHDOG_WINDOW_SUPPORT |
Definition at line 45 of file wwdt_11xx.h.
| #define WWDT_WDMOD_BITMASK ((uint32_t) 0x1F) |
Watchdog Mode register definitions.
Watchdog Mode Bitmask
Definition at line 75 of file wwdt_11xx.h.
| #define WWDT_WDMOD_WDEN ((uint32_t) (1 << 0)) |
WWDT interrupt enable bit
Definition at line 77 of file wwdt_11xx.h.
| #define WWDT_WDMOD_WDINT ((uint32_t) (1 << 3)) |
WDT Time Out flag bit
Definition at line 83 of file wwdt_11xx.h.
| #define WWDT_WDMOD_WDPROTECT ((uint32_t) (1 << 4)) |
WWDT Protect flag bit
Definition at line 85 of file wwdt_11xx.h.
| #define WWDT_WDMOD_WDRESET ((uint32_t) (1 << 1)) |
WWDT interrupt enable bit
Definition at line 79 of file wwdt_11xx.h.
| #define WWDT_WDMOD_WDTOF ((uint32_t) (1 << 2)) |
WWDT time out flag bit
Definition at line 81 of file wwdt_11xx.h.
| 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 77 of file wwdt_11xx.c.
| 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 70 of file wwdt_11xx.c.
| 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 119 of file wwdt_11xx.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 221 of file wwdt_11xx.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 201 of file wwdt_11xx.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 56 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 166 of file wwdt_11xx.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 107 of file wwdt_11xx.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 134 of file wwdt_11xx.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 timeout in ticks, between WWDT_TICKS_MIN and WWDT_TICKS_MAX |
Definition at line 148 of file wwdt_11xx.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 190 of file wwdt_11xx.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 180 of file wwdt_11xx.h.