aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-11-26 23:33:41 +0100
committerJoel Bodenmann <joel@unormal.org>2012-11-26 23:33:41 +0100
commite89bb0b4d84fe7623e5b7ab80b5c7b40f69a31e8 (patch)
tree268473fe770e0112ad5eafb0ab79f12b4387cabb /drivers/ginput
parentba08afef3ec1af2412f526623156f5f50d102ec0 (diff)
downloaduGFX-e89bb0b4d84fe7623e5b7ab80b5c7b40f69a31e8.tar.gz
uGFX-e89bb0b4d84fe7623e5b7ab80b5c7b40f69a31e8.tar.bz2
uGFX-e89bb0b4d84fe7623e5b7ab80b5c7b40f69a31e8.zip
few fixes and FireBull STM32 F103 GINPUT dummy board file
Diffstat (limited to 'drivers/ginput')
-rw-r--r--drivers/ginput/touch/ADS7843/ginput_lld_mouse.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c
index de32c493..57508171 100644
--- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c
+++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c
@@ -1,5 +1,5 @@
/*
- ChibiOS/RT - Copyright (C) 2012
+ ChibiOS/GFX - Copyright (C) 2012
Joel Bodenmann aka Tectu <joel@unormal.org>
This file is part of ChibiOS/GFX.
@@ -31,15 +31,17 @@
#if (GFX_USE_GINPUT && GINPUT_NEED_MOUSE) /*|| defined(__DOXYGEN__)*/
+#include "gdisp.h" /* for coord_t */
+#include "ginput/ginput_mouse.h" /* for GINPUT_TOUCH_PRESSED */
#include "lld/ginput/mouse.h"
+#include "gevent.h"
#if defined(GINPUT_MOUSE_USE_CUSTOM_BOARD) && GINPUT_MOUSE_USE_CUSTOM_BOARD
- /* Include the user supplied board definitions */
#include "ginput_lld_mouse_board.h"
-//#elif defined(BOARD_OLIMEX_SAM7_EX256)
-// #include "ginput_lld_mouse_board_olimexsam7ex256.h"
+#elif defined(BOARD_FIREBULL_STM32_F103)
+ #include "ginput_lld_mouse_board_firebull_stm32f103.h"
#else
- #include "ginput_lld_mouse_board.h"
+ #include "ginput_lld_mouse_board_example.h"
#endif
static uint16_t sampleBuf[7];
@@ -92,6 +94,8 @@ void ginput_lld_mouse_init(void) {
* @notapi
*/
void ginput_lld_mouse_get_reading(MouseReading *pt) {
+ uint16_t i;
+
// If touch-off return the previous results
if (!getpin_pressed()) {
pt->x = lastx;