touch interrupt enable */
| 71 | |
| 72 | /* touch interrupt enable */ |
| 73 | static void rt_touch_irq_enable(rt_touch_t touch) |
| 74 | { |
| 75 | #ifdef RT_TOUCH_PIN_IRQ |
| 76 | if (touch->config.irq_pin.pin != PIN_IRQ_PIN_NONE) |
| 77 | { |
| 78 | rt_pin_irq_enable(touch->config.irq_pin.pin, RT_TRUE); |
| 79 | } |
| 80 | #else |
| 81 | touch->ops->touch_control(touch, RT_TOUCH_CTRL_ENABLE_INT, RT_NULL); |
| 82 | #endif |
| 83 | } |
| 84 | |
| 85 | /* touch interrupt disable */ |
| 86 | static void rt_touch_irq_disable(rt_touch_t touch) |
no test coverage detected