diff options
author | Tectu <joel@unormal.org> | 2012-08-09 03:30:45 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-08-09 03:30:45 +0200 |
commit | 03c27adb1c86d37548e695fd89937f01ed528954 (patch) | |
tree | c54b69bdc63a1011be0cd513f4a06ec5b237a115 /halext/include | |
parent | 956f6125446cd73fc839a58a999dbe57e5a35e97 (diff) | |
download | uGFX-03c27adb1c86d37548e695fd89937f01ed528954.tar.gz uGFX-03c27adb1c86d37548e695fd89937f01ed528954.tar.bz2 uGFX-03c27adb1c86d37548e695fd89937f01ed528954.zip |
added tpIRQ()
Diffstat (limited to 'halext/include')
-rw-r--r-- | halext/include/touchpad.h | 5 | ||||
-rw-r--r-- | halext/include/touchpad_lld.h | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/halext/include/touchpad.h b/halext/include/touchpad.h index 4f9dce1a..445d3202 100644 --- a/halext/include/touchpad.h +++ b/halext/include/touchpad.h @@ -73,7 +73,10 @@ extern "C" { void tpInit(TOUCHPADDriver *tp); uint16_t tpReadX(void); uint16_t tpReadY(void); -void tpCalibrate(void); + +#if TOUCHPAD_HAS_IRQ + uint8_t tpIRQ(void); +#endif #if TOUCHPAD_HAS_PRESSURE uint16_t tpReadZ(void); 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 |