diff options
Diffstat (limited to 'components/drivers/touch/touch.c')
| -rw-r--r-- | components/drivers/touch/touch.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/components/drivers/touch/touch.c b/components/drivers/touch/touch.c index 1dd93d915f..f8802a526f 100644 --- a/components/drivers/touch/touch.c +++ b/components/drivers/touch/touch.c @@ -66,8 +66,6 @@ static rt_err_t rt_touch_irq_init(rt_touch_t touch) rt_pin_irq_enable(touch->config.irq_pin.pin, PIN_IRQ_ENABLE); - LOG_I("interrupt init success"); - return RT_EOK; } @@ -198,6 +196,12 @@ static rt_err_t rt_touch_control(rt_device_t dev, int cmd, void *args) } break; + case RT_TOUCH_CTRL_DISABLE_INT: + rt_touch_irq_disable(touch); + break; + case RT_TOUCH_CTRL_ENABLE_INT: + rt_touch_irq_enable(touch); + break; default: return RT_ERROR; } |
