27 #ifndef LPC17XX_SYSTICK_H_
28 #define LPC17XX_SYSTICK_H_
48 #define ST_CTRL_ENABLE ((uint32_t)(1<<0))
49 #define ST_CTRL_TICKINT ((uint32_t)(1<<1))
50 #define ST_CTRL_CLKSOURCE ((uint32_t)(1<<2))
51 #define ST_CTRL_COUNTFLAG ((uint32_t)(1<<16))
56 #define ST_RELOAD_RELOAD(n) ((uint32_t)(n & 0x00FFFFFF))
61 #define ST_RELOAD_CURRENT(n) ((uint32_t)(n & 0x00FFFFFF))
66 #define ST_CALIB_TENMS(n) ((uint32_t)(n & 0x00FFFFFF))
67 #define ST_CALIB_SKEW ((uint32_t)(1<<30))
68 #define ST_CALIB_NOREF ((uint32_t)(1<<31))
70 #define CLKSOURCE_EXT ((uint32_t)(0))
71 #define CLKSOURCE_CPU ((uint32_t)(1))