aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
committerinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
commit7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (patch)
tree95cf152ef65ff19c7b2515b427bbe86b92b611d0 /drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c
parent8bd70d953bcd3e32ceb4e45a4e561c973726280a (diff)
downloaduGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.gz
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.bz2
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.zip
For all source files update integer types to the new gI8 etc type names
Diffstat (limited to 'drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c')
-rw-r--r--drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c b/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c
index acfe2142..4fca15d9 100644
--- a/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c
+++ b/drivers/ginput/touch/MAX11802/gmouse_lld_MAX11802.c
@@ -29,9 +29,9 @@
static gBool MouseInit(GMouse* m, unsigned driverinstance)
{
- const uint8_t *p;
+ const gU8 *p;
- static const uint8_t commandList[] = {
+ static const gU8 commandList[] = {
MAX11802_CMD_GEN_WR, 0xf0, // General config - leave TIRQ enabled, even though we ignore it ATM
MAX11802_CMD_RES_WR, 0x00, // A-D resolution, hardware config - rewriting default; all 12-bit resolution
MAX11802_CMD_AVG_WR, MAX11802_AVG, // A-D averaging - 8 samples, average four median samples
@@ -70,8 +70,8 @@ static gBool MouseInit(GMouse* m, unsigned driverinstance)
static gBool read_xyz(GMouse* m, GMouseReading* pdr)
{
- uint8_t readyCount;
- uint8_t notReadyCount;
+ gU8 readyCount;
+ gU8 notReadyCount;
// Assume not touched.
pdr->buttons = 0;
@@ -153,8 +153,8 @@ static gBool read_xyz(GMouse* m, GMouseReading* pdr)
}
// Strip the tags (we need to take care because gCoord is signed - and sign bit gets extended on shift!)
- pdr->x = (uint16_t)(pdr->x) >> 4;
- pdr->y = (uint16_t)(pdr->y) >> 4;
+ pdr->x = (gU16)(pdr->x) >> 4;
+ pdr->y = (gU16)(pdr->y) >> 4;
pdr->z = Z_MAX;
return gTrue;