59 #define TSC_CHECK_DELAY (20)
61 #if (defined(CHIP_LPC43XX) && defined(CORE_M0))
63 #define RITIMER_IRQn_PRI (255)
97 #if (defined(CHIP_LPC43XX) && defined(CORE_M0))
119 NVIC_SetPriority((IRQn_Type) RITIMER_IRQn, RITIMER_IRQn_PRI);
120 NVIC_EnableIRQ((IRQn_Type) RITIMER_IRQn);
146 int16_t tmp_x = -1, tmp_y = -1;
147 int16_t tmp_x1 = -1, tmp_y1 = -1;
148 static uint8_t tsc_tick = 0;
149 static uint8_t pressed = 0;
163 touched =
GetTouchPos((int16_t *) &tmp_x, (int16_t *) &tmp_y);
164 if (touched ==
true) {
169 GUI_TOUCH_StoreState(320 - tmp_x1, tmp_y1);
175 GUI_TOUCH_StoreState(320 - tmp_x1, tmp_y1);
183 GUI_TOUCH_StoreState(-1, -1);
215 SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
228 int16_t tmp_x = -1, tmp_y = -1;
229 int16_t tmp_x1 = -1, tmp_y1 = -1;
230 static uint8_t tsc_tick = 0;
231 static uint8_t pressed = 0;
241 touched =
GetTouchPos((int16_t *) &tmp_x, (int16_t *) &tmp_y);
242 if (touched ==
true) {
247 GUI_TOUCH_StoreState(320 - tmp_x1, tmp_y1);
253 GUI_TOUCH_StoreState(320 - tmp_x1, tmp_y1);
261 GUI_TOUCH_StoreState(-1, -1);