touch interrupt disable */
| 84 | |
| 85 | /* touch interrupt disable */ |
| 86 | static void rt_touch_irq_disable(rt_touch_t touch) |
| 87 | { |
| 88 | #ifdef RT_TOUCH_PIN_IRQ |
| 89 | if (touch->config.irq_pin.pin != PIN_IRQ_PIN_NONE) |
| 90 | { |
| 91 | rt_pin_irq_enable(touch->config.irq_pin.pin, RT_FALSE); |
| 92 | } |
| 93 | #else |
| 94 | touch->ops->touch_control(touch, RT_TOUCH_CTRL_DISABLE_INT, RT_NULL); |
| 95 | #endif |
| 96 | } |
| 97 | |
| 98 | static rt_err_t rt_touch_open(rt_device_t dev, rt_uint16_t oflag) |
| 99 | { |
no test coverage detected