aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/Olimex-STM32-LCD
diff options
context:
space:
mode:
Diffstat (limited to 'boards/base/Olimex-STM32-LCD')
-rw-r--r--boards/base/Olimex-STM32-LCD/board_ILI9320.h2
-rw-r--r--boards/base/Olimex-STM32-LCD/gmouse_lld_MCU_board.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/boards/base/Olimex-STM32-LCD/board_ILI9320.h b/boards/base/Olimex-STM32-LCD/board_ILI9320.h
index 1f3a8c82..a58e7d69 100644
--- a/boards/base/Olimex-STM32-LCD/board_ILI9320.h
+++ b/boards/base/Olimex-STM32-LCD/board_ILI9320.h
@@ -45,7 +45,7 @@ static GFXINLINE void post_init_board(GDisplay *g) {
(void) g;
}
-static GFXINLINE void setpin_reset(GDisplay *g, bool_t state) {
+static GFXINLINE void setpin_reset(GDisplay *g, gBool state) {
(void) g;
if(state)
diff --git a/boards/base/Olimex-STM32-LCD/gmouse_lld_MCU_board.h b/boards/base/Olimex-STM32-LCD/gmouse_lld_MCU_board.h
index 071ef081..7a6487e6 100644
--- a/boards/base/Olimex-STM32-LCD/gmouse_lld_MCU_board.h
+++ b/boards/base/Olimex-STM32-LCD/gmouse_lld_MCU_board.h
@@ -58,22 +58,22 @@ static GFXINLINE void setup_z(void) {
palSetPad(GPIOC, 3);
}
-static bool_t init_board(GMouse *m, unsigned driverinstance) {
+static gBool init_board(GMouse *m, unsigned driverinstance) {
(void) m;
// Only one touch interface on this board
if (driverinstance)
- return FALSE;
+ return gFalse;
adcStart(&ADCD1, 0);
// Set up for reading Z
setup_z();
chThdSleepMilliseconds(1); // Settling time
- return TRUE;
+ return gTrue;
}
-static bool_t read_xyz(GMouse *m, GMouseReading *prd) {
+static gBool read_xyz(GMouse *m, GMouseReading *prd) {
adcsample_t samples[ADC_NUM_CHANNELS * ADC_BUF_DEPTH];
uint16_t val1, val2;
(void) m;
@@ -130,7 +130,7 @@ static bool_t read_xyz(GMouse *m, GMouseReading *prd) {
// Set up for reading z again. We know it will be 20ms before we get called again so don't worry about settling time
setup_z();
}
- return TRUE;
+ return gTrue;
}
#endif /* _LLD_GMOUSE_MCU_BOARD_H */