![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Macros | |
| #define | WDT_OSC (500000 / 4) |
| #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_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 (500000 / 4) |
WDT oscillator frequency value Dedicated oscillator that provides a 500 kHz clock to Watchdog timer Minimum tick count for timer value and window value
Definition at line 45 of file wwdt_17xx_40xx.h.
| #define WWDT_TICKS_MAX 0xFFFFFF |
Definition at line 51 of file wwdt_17xx_40xx.h.
| #define WWDT_TICKS_MIN 0xFF |
Maximum tick count for timer value and window value
Definition at line 48 of file wwdt_17xx_40xx.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 178 of file wwdt_17xx_40xx.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 64 of file wwdt_17xx_40xx.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 87 of file wwdt_17xx_40xx.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 188 of file wwdt_17xx_40xx.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 165 of file wwdt_17xx_40xx.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 131 of file wwdt_17xx_40xx.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 75 of file wwdt_17xx_40xx.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 155 of file wwdt_17xx_40xx.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 145 of file wwdt_17xx_40xx.h.