aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput/touch/STMPE811
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ginput/touch/STMPE811')
-rw-r--r--drivers/ginput/touch/STMPE811/ginput_lld_mouse.c8
-rw-r--r--drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h (renamed from drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h)131
-rw-r--r--drivers/ginput/touch/STMPE811/readme.txt20
3 files changed, 63 insertions, 96 deletions
diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c
index 5e4b78ef..0d6aa147 100644
--- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c
+++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse.c
@@ -22,13 +22,7 @@
#include "ginput/lld/mouse.h"
-#if defined(GINPUT_MOUSE_USE_CUSTOM_BOARD) && GINPUT_MOUSE_USE_CUSTOM_BOARD
- #include "ginput_lld_mouse_board.h"
-#elif defined(BOARD_EMBEST_DMSTF4BB)
- #include "ginput_lld_mouse_board_embest_dmstf4bb.h"
-#else
- #include "ginput_lld_mouse_board_example.h"
-#endif
+#include "ginput_lld_mouse_board.h"
#ifndef STMP811_NO_GPIO_IRQPIN
#define STMP811_NO_GPIO_IRQPIN FALSE
diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h
index 926fd3fa..a60da459 100644
--- a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h
+++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h
@@ -4,72 +4,65 @@
*
* http://chibios-gfx.com/license.html
*/
-
-/**
- * @file drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h
- * @brief GINPUT Touch low level driver source for the STMPE811 on the example board.
- *
- * @defgroup Mouse Mouse
- * @ingroup GINPUT
- * @{
- */
-
-#ifndef _GINPUT_LLD_MOUSE_BOARD_H
-#define _GINPUT_LLD_MOUSE_BOARD_H
-
-/**
- * @brief Initialise the board for the touch.
- *
- * @notapi
- */
-static void init_board(void)
-{
- /* Code here */
- #error "ginputSTMPE811: You must supply a definition for init_board for your board"
-}
-
-/**
- * @brief Check whether an interrupt is raised
- * @return TRUE if there is an interrupt signal present
- *
- * @notapi
- */
-static inline bool_t getpin_irq(void)
-{
- /* Code here */
- #error "ginputSTMPE811: You must supply a definition for getpin_irq for your board"
-}
-
-/**
- * @brief Write a value into a certain register
- *
- * @param[in] reg The register address
- * @param[in] n The amount of bytes (one or two)
- * @param[in] val The value
- *
- * @notapi
- */
-static void write_reg(uint8_t reg, uint8_t n, uint16_t val)
-{
- /* Code here */
- #error "ginputSTMPE811: You must supply a definition for write_reg for your board"
-}
-
-/**
- * @brief Read the value of a certain register
- *
- * @param[in] reg The register address
- * @param[in] n The amount of bytes (one or two)
- *
- * @return Data read from device (one byte or two depending on n param)
- *
- * @notapi
- */
-static uint16_t read_reg(uint8_t reg, uint8_t n)
-{
- /* Code here */
- #error "ginputSTMPE811: You must supply a definition for read_reg for your board"
-}
-
-#endif /* _GINPUT_LLD_MOUSE_BOARD_H */
-/** @} */
+
+/**
+ * @file drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h
+ * @brief GINPUT Touch low level driver source for the STMPE811 on the example board.
+ *
+ * @defgroup Mouse Mouse
+ * @ingroup GINPUT
+ * @{
+ */
+
+#ifndef _GINPUT_LLD_MOUSE_BOARD_H
+#define _GINPUT_LLD_MOUSE_BOARD_H
+
+/**
+ * @brief Initialise the board for the touch.
+ *
+ * @notapi
+ */
+static void init_board(void) {
+
+}
+
+/**
+ * @brief Check whether an interrupt is raised
+ * @return TRUE if there is an interrupt signal present
+ *
+ * @notapi
+ */
+static inline bool_t getpin_irq(void) {
+
+}
+
+/**
+ * @brief Write a value into a certain register
+ *
+ * @param[in] reg The register address
+ * @param[in] n The amount of bytes (one or two)
+ * @param[in] val The value
+ *
+ * @notapi
+ */
+static void write_reg(uint8_t reg, uint8_t n, uint16_t val) {
+
+}
+
+/**
+ * @brief Read the value of a certain register
+ *
+ * @param[in] reg The register address
+ * @param[in] n The amount of bytes (one or two)
+ *
+ * @return Data read from device (one byte or two depending on n param)
+ *
+ * @notapi
+ */
+static uint16_t read_reg(uint8_t reg, uint8_t n) {
+
+}
+
+#endif /* _GINPUT_LLD_MOUSE_BOARD_H */
+/** @} */
+
diff --git a/drivers/ginput/touch/STMPE811/readme.txt b/drivers/ginput/touch/STMPE811/readme.txt
deleted file mode 100644
index 065840d8..00000000
--- a/drivers/ginput/touch/STMPE811/readme.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-The STMPE811 driver comes with two different #defines to perfectly fit
-your application:
-
-
-STMPE811_NO_GPIO_IRQPIN
-This Macro is meant to be set in your board file. When you set this macro to
-TRUE, the GINPUT module will not use the IRQ lane which might be connected
-to a GPIO pin to recognize interrupts by the STMPE811 controller. This
-costs a few more I2C calls.
-When the interrupt IRQ pin is connected to a GPIO of your MCU, set this
-macro to FALSE.
-
-
-STMP811_SLOW_CPU
-If you have a slow CPU and you need to take care of your resources, you can
-set this macro TRUE. This will save some IRQs and therefore a few I2C calls.
-The disadvantage is a little higher response time.
-If you don't want to draw continious lines on your display, it's recommended
-to set this to TRUE anyways.
-