![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "chip.h"
Go to the source code of this file.
Macros | |
#define | WDT_OSC (CGU_IRC_FREQ) |
#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)) |
#define | WWDT_TICKS_MIN 0xFF |
#define | WWDT_TICKS_MAX 0xFFFFFF |
Functions | |
void | Chip_WWDT_Init (void) |
Initialize the Watchdog timer. | |
STATIC INLINE void | Chip_WWDT_SetTimeOut (uint32_t timeout) |
Set WDT timeout constant value used for feed. | |
STATIC INLINE void | Chip_WWDT_Feed (void) |
Feed watchdog timer. | |
STATIC INLINE void | Chip_WWDT_SetWarning (uint32_t timeout) |
Set WWDT warning interrupt. | |
STATIC INLINE void | Chip_WWDT_SetWindow (uint32_t timeout) |
Set WWDT window time. | |
STATIC INLINE void | Chip_WWDT_SetOption (uint32_t options) |
Enable watchdog timer options. | |
STATIC INLINE void | Chip_WWDT_UnsetOption (uint32_t options) |
Disable/clear watchdog timer options. | |
STATIC INLINE void | Chip_WWDT_Start (void) |
Enable WWDT activity. | |
STATIC INLINE uint32_t | Chip_WWDT_GetStatus (void) |
Read WWDT status flag. | |
void | Chip_WWDT_ClearStatusFlag (uint32_t status) |
Clear WWDT interrupt status flags. | |
STATIC INLINE uint32_t | WWDT_GetCurrentCount (void) |
Get the current value of WDT. | |