aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/touchscreen/MCU/touchscreen_lld_config.h
diff options
context:
space:
mode:
authorAndrew Hannam <andrewh@inmarket.com.au>2012-11-25 22:44:25 -0800
committerAndrew Hannam <andrewh@inmarket.com.au>2012-11-25 22:44:25 -0800
commit6cc2bc280cc7dc4cb546d94219210d65c15df2e1 (patch)
tree54b4ded1928d9f03d74b74aefe333cc93f047ba9 /drivers/touchscreen/MCU/touchscreen_lld_config.h
parentd1836d49fee08eaa08a837e9f6176f3d41fbb735 (diff)
parentac5267af6af5508d4391fddb3d27c8d45879950a (diff)
downloaduGFX-6cc2bc280cc7dc4cb546d94219210d65c15df2e1.tar.gz
uGFX-6cc2bc280cc7dc4cb546d94219210d65c15df2e1.tar.bz2
uGFX-6cc2bc280cc7dc4cb546d94219210d65c15df2e1.zip
Merge pull request #8 from Tectu/master
Merge Tectu Changes
Diffstat (limited to 'drivers/touchscreen/MCU/touchscreen_lld_config.h')
-rw-r--r--drivers/touchscreen/MCU/touchscreen_lld_config.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/drivers/touchscreen/MCU/touchscreen_lld_config.h b/drivers/touchscreen/MCU/touchscreen_lld_config.h
index e57d5723..800518ae 100644
--- a/drivers/touchscreen/MCU/touchscreen_lld_config.h
+++ b/drivers/touchscreen/MCU/touchscreen_lld_config.h
@@ -38,15 +38,20 @@
#define TOUCHSCREEN_HAS_PRESSED TRUE
#define TOUCHSCREEN_HAS_PRESSURE FALSE
+/**
+ * @brief The touchscreen driver struct
+ * @details Pointer to this will be passed to tsInit()
+ */
struct TouchscreenDriver {
- ioportid_t ts_yd_port;
- ioportmask_t ts_yd_pin;
- ioportid_t ts_yu_port;
- ioportmask_t ts_yu_pin;
- ioportid_t ts_xl_port;
- ioportmask_t ts_xl_pin;
- ioportid_t ts_xr_port;
- ioportmask_t ts_xr_pin;
+ ADCDriver *adc_driver;
+ ioportid_t yd_port;
+ ioportmask_t yd_pin;
+ ioportid_t yu_port;
+ ioportmask_t yu_pin;
+ ioportid_t xl_port;
+ ioportmask_t xl_pin;
+ ioportid_t xr_port;
+ ioportmask_t xr_pin;
};
#endif /* GFX_USE_TOUCHSCREEN */