diff options
Diffstat (limited to 'drivers/touchscreen/MCU/touchscreen_lld_config.h')
-rw-r--r-- | drivers/touchscreen/MCU/touchscreen_lld_config.h | 21 |
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 */
|