aboutsummaryrefslogtreecommitdiffstats
path: root/boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h
diff options
context:
space:
mode:
Diffstat (limited to 'boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h')
-rw-r--r--boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h b/boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h
index 6bce29e6..e34dee84 100644
--- a/boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h
+++ b/boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h
@@ -16,7 +16,7 @@
static SPI_HandleTypeDef _hspi;
-static bool_t init_board(GMouse* m, unsigned driverinstance)
+static gBool init_board(GMouse* m, unsigned driverinstance)
{
GPIO_InitTypeDef GPIO_InitStruct;
@@ -93,20 +93,20 @@ static bool_t init_board(GMouse* m, unsigned driverinstance)
_hspi.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
_hspi.Init.CRCPolynomial = 10;
if (HAL_SPI_Init(&_hspi) != HAL_OK) {
- return FALSE;
+ return gFalse;
}
- return TRUE;
+ return gTrue;
}
-static GFXINLINE bool_t getpin_pressed(GMouse* m)
+static GFXINLINE gBool getpin_pressed(GMouse* m)
{
(void)m;
if (HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_4) == GPIO_PIN_RESET)
- return TRUE;
+ return gTrue;
- return FALSE;
+ return gFalse;
}
static GFXINLINE void aquire_bus(GMouse* m)