aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c')
-rw-r--r--drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
index 90496b29..fe978828 100644
--- a/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
+++ b/drivers/ginput/touch/STMPE811/gmouse_lld_STMPE811.c
@@ -57,9 +57,9 @@
* The settling times. We have set these conservatively at 1ms.
* The reading window. We set this to 16 just to reduce noise. High-res panels may need a lower value.
*/
-static bool_t MouseInit(GMouse* m, unsigned driverinstance) {
+static gBool MouseInit(GMouse* m, unsigned driverinstance) {
if (!init_board(m, driverinstance))
- return FALSE;
+ return gFalse;
aquire_bus(m);
@@ -95,10 +95,10 @@ static bool_t MouseInit(GMouse* m, unsigned driverinstance) {
write_reg(m, STMPE811_REG_INT_CTRL, 0x01); // Level interrupt, enable interrupts
release_bus(m);
- return TRUE;
+ return gTrue;
}
-static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
+static gBool read_xyz(GMouse* m, GMouseReading* pdr)
{
#if GMOUSE_STMPE811_TEST_MODE
static GMouseReading n;
@@ -133,14 +133,14 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
write_reg(m, STMPE811_REG_INT_STA, 0xFF);
#endif
release_bus(m);
- return TRUE;
+ return gTrue;
}
#else
// Is there a new sample or a touch transition
#if GMOUSE_STMPE811_GPIO_IRQPIN
if(!getpin_irq(m))
- return FALSE;
+ return gFalse;
#endif
// Is there something in the fifo
@@ -157,7 +157,7 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
write_reg(m, STMPE811_REG_INT_STA, 0xFF);
#endif
release_bus(m);
- return TRUE;
+ return gTrue;
}
// No new result
@@ -165,7 +165,7 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
write_reg(m, STMPE811_REG_INT_STA, 0xFF);
#endif
release_bus(m);
- return FALSE;
+ return gFalse;
}
#endif
@@ -228,7 +228,7 @@ static bool_t read_xyz(GMouse* m, GMouseReading* pdr)
#endif
#endif
- return TRUE;
+ return gTrue;
}
const GMouseVMT const GMOUSE_DRIVER_VMT[1] = {{