aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/Mikromedia-STM32-M4-ILI9341/ginput_lld_mouse_config.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-28 19:49:39 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-28 19:49:39 +1000
commitdc2d5be60625dc03f0982d61a55dd3ccf844fff5 (patch)
treeb9cf050cf50b77ed67fb36a50efbea9e4c937227 /boards/base/Mikromedia-STM32-M4-ILI9341/ginput_lld_mouse_config.h
parent0fe4d3a037fd8989227604805a2f130eb67038de (diff)
downloaduGFX-dc2d5be60625dc03f0982d61a55dd3ccf844fff5.tar.gz
uGFX-dc2d5be60625dc03f0982d61a55dd3ccf844fff5.tar.bz2
uGFX-dc2d5be60625dc03f0982d61a55dd3ccf844fff5.zip
uGFX board definition for the Mikromedia STM32 M4 board.
Includes the required ChibiOS board files and an example Makefile.
Diffstat (limited to 'boards/base/Mikromedia-STM32-M4-ILI9341/ginput_lld_mouse_config.h')
-rw-r--r--boards/base/Mikromedia-STM32-M4-ILI9341/ginput_lld_mouse_config.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/boards/base/Mikromedia-STM32-M4-ILI9341/ginput_lld_mouse_config.h b/boards/base/Mikromedia-STM32-M4-ILI9341/ginput_lld_mouse_config.h
new file mode 100644
index 00000000..0c0ff482
--- /dev/null
+++ b/boards/base/Mikromedia-STM32-M4-ILI9341/ginput_lld_mouse_config.h
@@ -0,0 +1,32 @@
+/*
+ * This file is subject to the terms of the GFX License. If a copy of
+ * the license was not distributed with this file, you can obtain one at:
+ *
+ * http://ugfx.org/license.html
+ */
+
+/**
+ * @file boards/base/Mikromedia-STM32-M4-ILI9341/ginput_lld_mouse_config.h
+ * @brief GINPUT LLD header file for touch driver.
+ *
+ * @defgroup Mouse Mouse
+ * @ingroup GINPUT
+ *
+ * @{
+ */
+
+#ifndef _LLD_GINPUT_MOUSE_CONFIG_H
+#define _LLD_GINPUT_MOUSE_CONFIG_H
+
+#define GINPUT_MOUSE_EVENT_TYPE GEVENT_TOUCH
+#define GINPUT_MOUSE_NEED_CALIBRATION TRUE
+#define GINPUT_MOUSE_LLD_CALIBRATION_LOADSAVE FALSE
+#define GINPUT_MOUSE_MAX_CALIBRATION_ERROR 12
+#define GINPUT_MOUSE_READ_CYCLES 4
+#define GINPUT_MOUSE_POLL_PERIOD 3
+#define GINPUT_MOUSE_MAX_CLICK_JITTER 2
+#define GINPUT_MOUSE_MAX_MOVE_JITTER 2
+#define GINPUT_MOUSE_CLICK_TIME 500
+
+#endif /* _LLD_GINPUT_MOUSE_CONFIG_H */
+/** @} */