Go to the documentation of this file.
27 #ifndef LPC17XX_WDT_H_
28 #define LPC17XX_WDT_H_
48 #define WDT_WDMOD_WDEN ((uint32_t)(1<<0))
50 #define WDT_WDMOD_WDRESET ((uint32_t)(1<<1))
52 #define WDT_WDMOD_WDTOF ((uint32_t)(1<<2))
54 #define WDT_WDMOD_WDINT ((uint32_t)(1<<3))
56 #define WDT_WDMOD(n) ((uint32_t)(1<<1))
59 #define WDT_US_INDEX ((uint32_t)(1000000))
61 #define WDT_TIMEOUT_MIN ((uint32_t)(0xFF))
63 #define WDT_TIMEOUT_MAX ((uint32_t)(0xFFFFFFFF))
66 #define WDT_WDMOD_MASK (uint8_t)(0x02)
68 #define WDT_WDTC_MASK (uint8_t)(0xFFFFFFFF)
70 #define WDT_WDFEED_MASK (uint8_t)(0x000000FF)
72 #define WDT_WDCLKSEL_MASK (uint8_t)(0x03)
74 #define WDT_WDCLKSEL_RC (uint8_t)(0x00)
76 #define WDT_WDCLKSEL_PCLK (uint8_t)(0x01)
78 #define WDT_WDCLKSEL_RTC (uint8_t)(0x02)
82 #define PARAM_WDT_CLK_OPT(OPTION) ((OPTION ==WDT_CLKSRC_IRC)||(OPTION ==WDT_CLKSRC_IRC)\
83 ||(OPTION ==WDT_CLKSRC_IRC))
86 #define PARAM_WDT_MODE_OPT(OPTION) ((OPTION ==WDT_MODE_INT_ONLY)||(OPTION ==WDT_MODE_RESET))