aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKumar Abhishek <abhishek.kakkar@hotmail.com>2012-08-09 16:25:23 +0530
committerKumar Abhishek <abhishek.kakkar@hotmail.com>2012-08-09 16:25:23 +0530
commit58ddfd92104854ba58a68e85021a4bd0a6a8a99d (patch)
tree7bf33c5023133a56ad0effe3bc0b9e6371f27361
parent60582cbf35ff9a4d9157fe07074d1e12b7f20a1f (diff)
downloaduGFX-58ddfd92104854ba58a68e85021a4bd0a6a8a99d.tar.gz
uGFX-58ddfd92104854ba58a68e85021a4bd0a6a8a99d.tar.bz2
uGFX-58ddfd92104854ba58a68e85021a4bd0a6a8a99d.zip
Changes to the Touchpad Configuration structure
Added field to the driver structure to set PENIRQ pin and port, defines removed
-rw-r--r--halext/include/touchpad_lld.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/halext/include/touchpad_lld.h b/halext/include/touchpad_lld.h
index c0339e05..a654299b 100644
--- a/halext/include/touchpad_lld.h
+++ b/halext/include/touchpad_lld.h
@@ -53,17 +53,36 @@
/* Driver types. */
/*===========================================================================*/
-typedef struct TOUCHPADDriver TOUCHPADDriver;
+typedef struct _TOUCHPADDriver TOUCHPADDriver;
/**
* @brief Structure representing a Touchpad driver.
*/
-struct TOUCHPADDriver {
+struct _TOUCHPADDriver {
/*
* @brief Pointer to SPI driver.
- * @note SPI driver must be enabled in mcu- and halconf.h
+ * @note SPI driver must be enabled in mcuconf.h and halconf.h
*/
- SPIDriver *spid;
+ SPIDriver *spip;
+
+ /*
+ * @brief Pointer to the SPI configuration structure.
+ * @note The lowest possible speed ~ 1-2MHz is to be used, otherwise
+ * will result in a lot of noise
+ */
+ SPIConfig *spicfg;
+
+ /*
+ * @brief Touchscreen controller TPIRQ pin GPIO port
+ */
+ ioportid_t tpIRQPort;
+
+ /*
+ * @brief Touchscreen controller TPIRQ GPIO pin
+ * @note The lowest possible speed ~ 1-2MHz is to be used, otherwise
+ * will result in a lot of noise
+ */
+ ioportmask_t tpIRQPin;
};
/*===========================================================================*/