ugfx/drivers/ginput/touch/STMPE811/ginput_lld_mouse_board_example.h

76 lines
1.8 KiB
C
Raw Normal View History

2013-05-03 14:36:17 +00:00
/*
2013-06-15 11:37:22 +00:00
* This file is subject to the terms of the GFX License. If a copy of
2013-05-03 14:36:17 +00:00
* the license was not distributed with this file, you can obtain one at:
*
* http://chibios-gfx.com/license.html
*/
2013-03-07 23:56:59 +00:00
/**
* @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)
{
2013-03-07 23:56:59 +00:00
/* 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
2013-03-07 23:56:59 +00:00
*
* @notapi
*/
static inline bool_t getpin_irq(void)
{
2013-03-07 23:56:59 +00:00
/* Code here */
#error "ginputSTMPE811: You must supply a definition for getpin_irq for your board"
2013-03-07 23:56:59 +00:00
}
/**
* @brief Write a value into a certain register
2013-03-07 23:56:59 +00:00
*
* @param[in] reg The register address
* @param[in] n The amount of bytes (one or two)
* @param[in] val The value
2013-03-07 23:56:59 +00:00
*
* @notapi
*/
static void write_reg(uint8_t reg, uint8_t n, uint16_t val)
{
2013-03-07 23:56:59 +00:00
/* Code here */
#error "ginputSTMPE811: You must supply a definition for write_reg for your board"
2013-03-07 23:56:59 +00:00
}
/**
* @brief Read the value of a certain register
*
* @param[in] reg The register address
* @param[in] n The amount of bytes (one or two)
2013-03-07 23:56:59 +00:00
*
* @return Data read from device (one byte or two depending on n param)
2013-03-07 23:56:59 +00:00
*
* @notapi
*/
static uint16_t read_reg(uint8_t reg, uint8_t n)
{
2013-03-07 23:56:59 +00:00
/* Code here */
#error "ginputSTMPE811: You must supply a definition for read_reg for your board"
2013-03-07 23:56:59 +00:00
}
#endif /* _GINPUT_LLD_MOUSE_BOARD_H */
/** @} */