| 96 | } |
| 97 | |
| 98 | static rt_err_t rt_touch_open(rt_device_t dev, rt_uint16_t oflag) |
| 99 | { |
| 100 | rt_touch_t touch; |
| 101 | RT_ASSERT(dev != RT_NULL); |
| 102 | touch = (rt_touch_t)dev; |
| 103 | |
| 104 | if (oflag & RT_DEVICE_FLAG_INT_RX && dev->flag & RT_DEVICE_FLAG_INT_RX) |
| 105 | { |
| 106 | /* Initialization touch interrupt */ |
| 107 | rt_touch_irq_init(touch); |
| 108 | } |
| 109 | |
| 110 | return RT_EOK; |
| 111 | } |
| 112 | |
| 113 | static rt_err_t rt_touch_close(rt_device_t dev) |
| 114 | { |
nothing calls this directly
no test coverage detected