summaryrefslogtreecommitdiff
path: root/components/drivers/touch/touch.h
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2020-12-28 04:13:25 -0600
committerGitHub <[email protected]>2020-12-28 04:13:25 -0600
commit3bca2cfb418f03c529fc8563b62c19d391caf90b (patch)
tree469dbaebaa3325f64e59b71b4063f135bb6fdfd8 /components/drivers/touch/touch.h
parent84a5f96453ee2719695b719142af08b7a51b623d (diff)
parent936db0e396f286a7f493cdadb698cf9340a82448 (diff)
Merge pull request #7 from RT-Thread/master
pr
Diffstat (limited to 'components/drivers/touch/touch.h')
-rw-r--r--components/drivers/touch/touch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/drivers/touch/touch.h b/components/drivers/touch/touch.h
index c33fe17520..be12c24206 100644
--- a/components/drivers/touch/touch.h
+++ b/components/drivers/touch/touch.h
@@ -66,7 +66,9 @@ struct rt_touch_info
struct rt_touch_config
{
+#ifdef RT_TOUCH_PIN_IRQ
struct rt_device_pin_mode irq_pin; /* Interrupt pin, The purpose of this pin is to notification read data */
+#endif
char *dev_name; /* The name of the communication device */
void *user_data;
};
@@ -103,6 +105,9 @@ int rt_hw_touch_register(rt_touch_t touch,
rt_uint32_t flag,
void *data);
+/* if you doesn't use pin device. you must call this function in your touch irq callback */
+void rt_hw_touch_isr(rt_touch_t touch);
+
#ifdef __cplusplus
}
#endif