From 9c74a081313a8681d2a47a15b9a0e228289a5c25 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 25 Nov 2012 23:33:10 +0100 Subject: implemented MCU touchscreen driver --- drivers/touchscreen/MCU/touchscreen_lld_config.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'drivers/touchscreen/MCU/touchscreen_lld_config.h') 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 */ -- cgit v1.2.3