diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-06-22 23:14:54 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-06-22 23:14:54 +1000 |
commit | c8300fe9c2c7facff1ad32978a5d961690473de4 (patch) | |
tree | 0e653df0a5d733e254b2d5d3a463968285340837 /drivers/ginput/touch/FT5x06/ginput_lld_mouse_board_example.h | |
parent | d362d9603e9d161e7006282f882205754e5afc58 (diff) | |
parent | 9aa1e95423f681277d048bed6b9acc5101f2cbe2 (diff) | |
download | uGFX-c8300fe9c2c7facff1ad32978a5d961690473de4.tar.gz uGFX-c8300fe9c2c7facff1ad32978a5d961690473de4.tar.bz2 uGFX-c8300fe9c2c7facff1ad32978a5d961690473de4.zip |
Merge branch 'master' into GWIN
Diffstat (limited to 'drivers/ginput/touch/FT5x06/ginput_lld_mouse_board_example.h')
-rw-r--r-- | drivers/ginput/touch/FT5x06/ginput_lld_mouse_board_example.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/drivers/ginput/touch/FT5x06/ginput_lld_mouse_board_example.h b/drivers/ginput/touch/FT5x06/ginput_lld_mouse_board_example.h new file mode 100644 index 00000000..19e824e5 --- /dev/null +++ b/drivers/ginput/touch/FT5x06/ginput_lld_mouse_board_example.h @@ -0,0 +1,72 @@ +/* + * 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/FT5x06/ginput_lld_mouse_board_example.h + * @brief GINPUT Touch low level driver source for the FT5x06 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 "ginputFT5x06: 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 "ginputFT5x06: 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 "ginputFT5x06: 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 "ginputFT5x06: You must supply a definition for read_reg for your board" +} + +#endif /* _GINPUT_LLD_MOUSE_BOARD_H */ +/** @} */ + |