STMPE811 getpin_pressed() -> getpin_irq()

ugfx_release_2.6
Joel Bodenmann 2013-03-29 18:17:24 +01:00
parent 2510f3e75b
commit 4440c2c887
3 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ void ginput_lld_mouse_get_reading(MouseReading *pt)
#else
// Check if the touch controller IRQ pin has gone off
clearfifo = false;
if(getpin_pressed()) { // please rename this to getpin_irq
if(getpin_irq()) { // please rename this to getpin_irq
write_reg(STMPE811_REG_INT_STA, 1, 0xFF); // clear all interrupts
touched = (uint8_t)read_reg(STMPE811_REG_TSC_CTRL, 1) & 0x80; // set the new touched status
clearfifo = true; // only take the last FIFO reading

View File

@ -56,7 +56,7 @@ static void init_board(void)
*
* @notapi
*/
static inline bool_t getpin_pressed(void) {
static inline bool_t getpin_irq(void) {
return (!(palReadPad(GPIOC, 13)));
}

View File

@ -47,10 +47,10 @@ static void init_board(void)
*
* @notapi
*/
static inline bool_t getpin_pressed(void)
static inline bool_t getpin_irq(void)
{
/* Code here */
#error "ginputSTMPE811: You must supply a definition for getpin_pressed for your board"
#error "ginputSTMPE811: You must supply a definition for getpin_irq for your board"
}
/**