aboutsummaryrefslogtreecommitdiffstats
path: root/halext/include/touchpad_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'halext/include/touchpad_lld.h')
-rw-r--r--halext/include/touchpad_lld.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/halext/include/touchpad_lld.h b/halext/include/touchpad_lld.h
index 7b33f366..c0339e05 100644
--- a/halext/include/touchpad_lld.h
+++ b/halext/include/touchpad_lld.h
@@ -41,6 +41,10 @@
/* Error checks. */
/*===========================================================================*/
+#ifndef TOUCHPAD_HAS_IRQ
+ #define TOUCHPAD_HAS_IRQ FALSE
+#endif
+
#ifndef TOUCHPAD_HAS_PRESSURE
#define TOUCHPAD_HAS_PRESSURE FALSE
#endif
@@ -79,7 +83,11 @@ extern "C" {
uint16_t tp_lld_read_x(void);
uint16_t tp_lld_read_y(void);
- #if TOUCHPAD_PRESSURE
+ #if TOUCHPAD_HAS_IRQ
+ uint8_t tp_lld_irq(void);
+ #endif
+
+ #if TOUCHPAD_HAS_PRESSURE
uint16_t tp_lld_read_z(void);
#endif