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

Function rt_touch_close

components/drivers/touch/dev_touch.c:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static rt_err_t rt_touch_close(rt_device_t dev)
114{
115 rt_touch_t touch;
116 RT_ASSERT(dev != RT_NULL);
117 touch = (rt_touch_t)dev;
118
119 /* touch disable interrupt */
120 rt_touch_irq_disable(touch);
121
122 return RT_EOK;
123}
124
125static rt_ssize_t rt_touch_read(rt_device_t dev, rt_off_t pos, void *buf, rt_size_t len)
126{

Callers

nothing calls this directly

Calls 1

rt_touch_irq_disableFunction · 0.85

Tested by

no test coverage detected