STMPE811 getpin_pressed() -> getpin_irq()
This commit is contained in:
parent
2510f3e75b
commit
4440c2c887
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue