![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Self Wakeup Timer
Data Structures | |
| struct | IP_WKT_001_T |
| Self wake-up timer register block structure. More... | |
Macros | |
| #define | WKT_CTRL_CLKSEL ((uint32_t) (1 << 0)) |
| #define | WKT_CTRL_ALARMFLAG ((uint32_t) (1 << 1)) |
| #define | WKT_CTRL_CLEARCTR ((uint32_t) (1 << 2)) |
Enumerations | |
| enum | IP_WKT_CLKSRC_T { IP_WKT_CLKSRC_DIVIRC = 0, IP_WKT_CLKSRC_10KHZ = 1 } |
Functions | |
| STATIC INLINE void | IP_WKT_ClearIntStatus (IP_WKT_001_T *pWKT) |
| Clear WKT interrupt status. | |
| STATIC INLINE void | IP_WKT_Stop (IP_WKT_001_T *pWKT) |
| Clear and stop WKT counter. | |
| STATIC INLINE void | IP_WKT_SetClockSource (IP_WKT_001_T *pWKT, IP_WKT_CLKSRC_T clkSrc) |
| Set the WKT clock source. | |
| STATIC INLINE void | IP_WKT_Start (IP_WKT_001_T *pWKT, uint32_t cntVal) |
| Set the WKT counter value & start the counter. | |
| #define WKT_CTRL_ALARMFLAG ((uint32_t) (1 << 1)) |
| #define WKT_CTRL_CLEARCTR ((uint32_t) (1 << 2)) |
| #define WKT_CTRL_CLKSEL ((uint32_t) (1 << 0)) |
| enum IP_WKT_CLKSRC_T |
| STATIC INLINE void IP_WKT_ClearIntStatus | ( | IP_WKT_001_T * | pWKT | ) |
| STATIC INLINE void IP_WKT_SetClockSource | ( | IP_WKT_001_T * | pWKT, |
| IP_WKT_CLKSRC_T | clkSrc | ||
| ) |
| STATIC INLINE void IP_WKT_Start | ( | IP_WKT_001_T * | pWKT, |
| uint32_t | cntVal | ||
| ) |
| STATIC INLINE void IP_WKT_Stop | ( | IP_WKT_001_T * | pWKT | ) |