80 #define TSC_CHECK_DELAY (20)
82 #if (defined(CHIP_LPC43XX) && defined(CORE_M0))
84 #define RITIMER_IRQn_PRI (255)
118 #if (defined(CHIP_LPC43XX) && defined(CORE_M0))
140 NVIC_SetPriority((IRQn_Type) RITIMER_IRQn, RITIMER_IRQn_PRI);
141 NVIC_EnableIRQ((IRQn_Type) RITIMER_IRQn);
167 int16_t tmp_x = -1, tmp_y = -1;
168 int16_t tmp_x1 = -1, tmp_y1 = -1;
169 static uint8_t tsc_tick = 0;
170 static uint8_t pressed = 0;
185 if (touched ==
true) {
190 GUI_TOUCH_StoreState(320 - tmp_x1, tmp_y1);
196 GUI_TOUCH_StoreState(320 - tmp_x1, tmp_y1);
204 GUI_TOUCH_StoreState(-1, -1);
236 SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
249 int16_t tmp_x = -1, tmp_y = -1;
250 int16_t tmp_x1 = -1, tmp_y1 = -1;
251 static uint8_t tsc_tick = 0;
252 static uint8_t pressed = 0;
263 if (touched ==
true) {
268 GUI_TOUCH_StoreState(320 - tmp_x1, tmp_y1);
274 GUI_TOUCH_StoreState(320 - tmp_x1, tmp_y1);
282 GUI_TOUCH_StoreState(-1, -1);
304 while (to > systick_timems) {}