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

Function rt_touch_irq_enable

components/drivers/touch/dev_touch.c:73–83  ·  view source on GitHub ↗

touch interrupt enable */

Source from the content-addressed store, hash-verified

71
72/* touch interrupt enable */
73static void rt_touch_irq_enable(rt_touch_t touch)
74{
75#ifdef RT_TOUCH_PIN_IRQ
76 if (touch->config.irq_pin.pin != PIN_IRQ_PIN_NONE)
77 {
78 rt_pin_irq_enable(touch->config.irq_pin.pin, RT_TRUE);
79 }
80#else
81 touch->ops->touch_control(touch, RT_TOUCH_CTRL_ENABLE_INT, RT_NULL);
82#endif
83}
84
85/* touch interrupt disable */
86static void rt_touch_irq_disable(rt_touch_t touch)

Callers 1

rt_touch_controlFunction · 0.85

Calls 1

rt_pin_irq_enableFunction · 0.85

Tested by

no test coverage detected