diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-07-21 17:42:25 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-07-21 17:42:25 +0200 |
commit | d98e6c5d0d6c048c99aeda810da10e6a6a130325 (patch) | |
tree | 397a911a667c873bcd68419307519210fe150e9b /drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h | |
parent | c29950c7670397d60b32e92fa4aadb29fea227a4 (diff) | |
download | uGFX-d98e6c5d0d6c048c99aeda810da10e6a6a130325.tar.gz uGFX-d98e6c5d0d6c048c99aeda810da10e6a6a130325.tar.bz2 uGFX-d98e6c5d0d6c048c99aeda810da10e6a6a130325.zip |
cleaned up board file mess
Diffstat (limited to 'drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h')
-rw-r--r-- | drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h new file mode 100644 index 00000000..a60da459 --- /dev/null +++ b/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_template.h @@ -0,0 +1,68 @@ +/* + * 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://chibios-gfx.com/license.html + */ + +/** + * @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 */ +/** @} */ + |