aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/Olimex-SAM7EX256-GE12/board_Nokia6610GE12.h
diff options
context:
space:
mode:
Diffstat (limited to 'boards/base/Olimex-SAM7EX256-GE12/board_Nokia6610GE12.h')
-rw-r--r--boards/base/Olimex-SAM7EX256-GE12/board_Nokia6610GE12.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/boards/base/Olimex-SAM7EX256-GE12/board_Nokia6610GE12.h b/boards/base/Olimex-SAM7EX256-GE12/board_Nokia6610GE12.h
index 6da500be..1dd8d803 100644
--- a/boards/base/Olimex-SAM7EX256-GE12/board_Nokia6610GE12.h
+++ b/boards/base/Olimex-SAM7EX256-GE12/board_Nokia6610GE12.h
@@ -57,7 +57,7 @@ static const PWMConfig pwmcfg = {
},
};
-static bool_t pwmRunning = FALSE;
+static gBool pwmRunning = gFalse;
/**
* @brief Initialise the board for the display.
@@ -123,7 +123,7 @@ static GFXINLINE void init_board(GDisplay *g) {
pSPI->SPI_CSR[0] = 0x01010311; //9bit, CPOL=1, ClockPhase=0, SCLK = 48Mhz/3 = 16MHz
/* Display backlight control at 100% */
- pwmRunning = FALSE;
+ pwmRunning = gFalse;
palSetPad(IOPORT2, PIOB_LCD_BL);
break;
}
@@ -133,7 +133,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)
palClearPad(IOPORT1, PIOA_LCD_RESET);
@@ -147,21 +147,21 @@ static GFXINLINE void set_backlight(GDisplay *g, uint8_t percent) {
/* Turn the pin on - No PWM */
if (pwmRunning) {
pwmStop(&PWMD2);
- pwmRunning = FALSE;
+ pwmRunning = gFalse;
}
palSetPad(IOPORT2, PIOB_LCD_BL);
} else if (percent == 0) {
/* Turn the pin off - No PWM */
if (pwmRunning) {
pwmStop(&PWMD2);
- pwmRunning = FALSE;
+ pwmRunning = gFalse;
}
palClearPad(IOPORT2, PIOB_LCD_BL);
} else {
/* Use the PWM */
if (!pwmRunning) {
pwmStart(&PWMD2, &pwmcfg);
- pwmRunning = TRUE;
+ pwmRunning = gTrue;
}
pwmEnableChannel(&PWMD2, 0, PWM_VALUE(percent));
}