MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_touch_open

Function rt_touch_open

components/drivers/touch/dev_touch.c:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static 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
113static rt_err_t rt_touch_close(rt_device_t dev)
114{

Callers

nothing calls this directly

Calls 1

rt_touch_irq_initFunction · 0.85

Tested by

no test coverage detected