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/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.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/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h')
-rw-r--r-- | boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h b/boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h index a11766e4..193652eb 100644 --- a/boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h +++ b/boards/base/Olimex-SAM7EX256-GE8/board_Nokia6610GE8.h @@ -56,7 +56,7 @@ static const PWMConfig pwmcfg = { }, }; -static bool_t pwmRunning = FALSE; +static gBool pwmRunning = gFalse; /** * @brief Initialise the board for the display. @@ -121,7 +121,7 @@ static GFXINLINE void init_board(GDisplay *g) { pSPI->SPI_CSR[0] = 0x00000311; //9bit, CPOL=1, ClockPhase=0, SCLK = 48Mhz/3 = 16MHz /* Display backlight control at 100% */ - pwmRunning = FALSE; + pwmRunning = gFalse; palSetPad(IOPORT2, PIOB_LCD_BL); break; } @@ -131,7 +131,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); @@ -145,21 +145,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)); } |