diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-06-23 13:02:07 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-06-23 13:02:07 +1000 |
commit | 41271d632b74f5cf47c30d3b699eb6b2786f2136 (patch) | |
tree | 78bcb729c6d6177ca598f28908fefd186c50e9b6 /boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h | |
parent | 3b97fb798e96514057bcf17263c1e5dbdcd7da26 (diff) | |
download | uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.tar.gz uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.tar.bz2 uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.zip |
Added new type definitions - moving towards V3.0
Diffstat (limited to 'boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h')
-rw-r--r-- | boards/addons/ginput/touch/ADS7843/stm32f4cube_hal.h | 12 |
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) |