C:/nxpdrv/LPC1700CMSIS/Drivers/include/lpc17xx_wdt.h File Reference
: Contains all macro definitions and function prototypes support for WDT firmware library on LPC17xx More...
#include "LPC17xx.h"
#include "lpc_types.h"
Go to the source code of this file.
Defines | |
| #define | WDT_WDMOD_WDEN ((uint32_t)(1<<0)) |
| #define | WDT_WDMOD_WDRESET ((uint32_t)(1<<1)) |
| #define | WDT_WDMOD_WDTOF ((uint32_t)(1<<2)) |
| #define | WDT_WDMOD_WDINT ((uint32_t)(1<<3)) |
| #define | WDT_WDMOD(n) ((uint32_t)(1<<1)) |
| #define | WDT_US_INDEX ((uint32_t)(1000000)) |
| #define | WDT_TIMEOUT_MIN ((uint32_t)(0xFF)) |
| #define | WDT_TIMEOUT_MAX ((uint32_t)(0xFFFFFFFF)) |
| #define | WDT_WDMOD_MASK (uint8_t)(0x02) |
| #define | WDT_WDTC_MASK (uint8_t)(0xFFFFFFFF) |
| #define | WDT_WDFEED_MASK (uint8_t)(0x000000FF) |
| #define | WDT_WDCLKSEL_MASK (uint8_t)(0x03) |
| #define | WDT_WDCLKSEL_RC (uint8_t)(0x00) |
| #define | WDT_WDCLKSEL_PCLK (uint8_t)(0x01) |
| #define | WDT_WDCLKSEL_RTC (uint8_t)(0x02) |
| #define | PARAM_WDT_CLK_OPT(OPTION) |
| #define | PARAM_WDT_MODE_OPT(OPTION) ((OPTION ==WDT_MODE_INT_ONLY)||(OPTION ==WDT_MODE_RESET)) |
Enumerations | |
| enum | WDT_CLK_OPT { WDT_CLKSRC_IRC = 0, WDT_CLKSRC_PCLK = 1, WDT_CLKSRC_RTC = 2 } |
| Clock source option for WDT. More... | |
| enum | WDT_MODE_OPT { WDT_MODE_INT_ONLY = 0, WDT_MODE_RESET = 1 } |
| WDT operation mode. More... | |
Functions | |
| void | WDT_Init (uint32_t ClkSrc, uint32_t WDTMode) |
| Initial for Watchdog function Clock source = RTC ,. | |
| void | WDT_Start (uint32_t TimeOut) |
| Start WDT activity with given timeout value. | |
| void | WDT_Feed (void) |
| After set WDTEN, call this function to start Watchdog or reload the Watchdog timer. | |
| FlagStatus | WDT_ReadTimeOutFlag (void) |
| Read WDT Time out flag. | |
| void | WDT_ClrTimeOutFlag (void) |
| Clear WDT Time out flag. | |
| void | WDT_UpdateTimeOut (uint32_t TimeOut) |
| Update WDT timeout value and feed. | |
| uint32_t | WDT_GetCurrentCount (void) |
| Get the current value of WDT. | |
Detailed Description
: Contains all macro definitions and function prototypes support for WDT firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 9. April. 2009
- Author:
- : HieuNguyen
Definition in file lpc17xx_wdt.h.
Generated on Mon Feb 8 10:01:41 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by
1.5.9