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

Function rt_touch_irq_disable

components/drivers/touch/dev_touch.c:86–96  ·  view source on GitHub ↗

touch interrupt disable */

Source from the content-addressed store, hash-verified

84
85/* touch interrupt disable */
86static 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
98static rt_err_t rt_touch_open(rt_device_t dev, rt_uint16_t oflag)
99{

Callers 2

rt_touch_closeFunction · 0.85
rt_touch_controlFunction · 0.85

Calls 1

rt_pin_irq_enableFunction · 0.85

Tested by

no test coverage detected