uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WDT Private Macros

Macros

#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))
 

Detailed Description

Macro Definition Documentation

#define PARAM_WDT_CLK_OPT (   OPTION)
Value:
((OPTION ==WDT_CLKSRC_IRC)||(OPTION ==WDT_CLKSRC_IRC)\
||(OPTION ==WDT_CLKSRC_IRC))

Definition at line 82 of file lpc17xx_wdt.h.

#define PARAM_WDT_MODE_OPT (   OPTION)    ((OPTION ==WDT_MODE_INT_ONLY)||(OPTION ==WDT_MODE_RESET))

Definition at line 86 of file lpc17xx_wdt.h.

#define WDT_TIMEOUT_MAX   ((uint32_t)(0xFFFFFFFF))

WDT Time out maximum value

Definition at line 63 of file lpc17xx_wdt.h.

#define WDT_TIMEOUT_MIN   ((uint32_t)(0xFF))

WDT Time out minimum value

Definition at line 61 of file lpc17xx_wdt.h.

#define WDT_US_INDEX   ((uint32_t)(1000000))

Define divider index for microsecond ( us )

Definition at line 59 of file lpc17xx_wdt.h.

#define WDT_WDCLKSEL_MASK   (uint8_t)(0x03)

Watchdog timer value register mask

Definition at line 72 of file lpc17xx_wdt.h.

#define WDT_WDCLKSEL_PCLK   (uint8_t)(0x01)

Clock selected from PCLK

Definition at line 76 of file lpc17xx_wdt.h.

#define WDT_WDCLKSEL_RC   (uint8_t)(0x00)

Clock selected from internal RC

Definition at line 74 of file lpc17xx_wdt.h.

#define WDT_WDCLKSEL_RTC   (uint8_t)(0x02)

Clock selected from external RTC

Definition at line 78 of file lpc17xx_wdt.h.

#define WDT_WDFEED_MASK   (uint8_t)(0x000000FF)

Watchdog feed sequence register mask

Definition at line 70 of file lpc17xx_wdt.h.

#define WDT_WDMOD (   n)    ((uint32_t)(1<<1))

WDT Mode

Definition at line 56 of file lpc17xx_wdt.h.

#define WDT_WDMOD_MASK   (uint8_t)(0x02)

Watchdog mode register mask

Definition at line 66 of file lpc17xx_wdt.h.

#define WDT_WDMOD_WDEN   ((uint32_t)(1<<0))

WDT interrupt enable bit

Definition at line 48 of file lpc17xx_wdt.h.

#define WDT_WDMOD_WDINT   ((uint32_t)(1<<3))

WDT Time Out flag bit

Definition at line 54 of file lpc17xx_wdt.h.

#define WDT_WDMOD_WDRESET   ((uint32_t)(1<<1))

WDT interrupt enable bit

Definition at line 50 of file lpc17xx_wdt.h.

#define WDT_WDMOD_WDTOF   ((uint32_t)(1<<2))

WDT time out flag bit

Definition at line 52 of file lpc17xx_wdt.h.

#define WDT_WDTC_MASK   (uint8_t)(0xFFFFFFFF)

Watchdog timer constant register mask

Definition at line 68 of file lpc17xx_wdt.h.