diff --git a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c index 2f280169..03f04203 100644 --- a/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c +++ b/halext/drivers/touchpad/touchpadXPT2046/touchpad_lld.c @@ -61,6 +61,8 @@ /* Driver local functions. */ /*===========================================================================*/ +#include "xpt2046_lld.c.h" + /*===========================================================================*/ /* Driver interrupt handlers. */ /*===========================================================================*/ diff --git a/halext/drivers/touchpad/touchpadXPT2046/xpt2046_lld.c.h b/halext/drivers/touchpad/touchpadXPT2046/xpt2046_lld.c.h new file mode 100644 index 00000000..2e891684 --- /dev/null +++ b/halext/drivers/touchpad/touchpadXPT2046/xpt2046_lld.c.h @@ -0,0 +1,40 @@ +/* + ChibiOS-LCD-Driver - Copyright (C) 2012 + Joel Bodenmann aka Tectu + + This file is part of ChibiOS-LCD-Driver. + + ChibiOS-LCD-Driver is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + ChibiOS-LCD-Driver is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#ifndef _XPT2046_H +#define _XPT2046_H + +void tp_lld_init(TOUCHPADDriver *tp) { + +} + +uint16_t tp_lld_read_x(void) { + return 42; +} + +uint16_t tp_lld_read_y(void) { + return 42; +} + +uint16_t tp_lld_read_z(void) { + return 42; +} + +#endif /* _XPT2046_H */