aboutsummaryrefslogtreecommitdiffstats
path: root/boards/addons/gdisp/board_ILI9341_spi.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-06-23 13:02:07 +1000
committerinmarket <andrewh@inmarket.com.au>2018-06-23 13:02:07 +1000
commit41271d632b74f5cf47c30d3b699eb6b2786f2136 (patch)
tree78bcb729c6d6177ca598f28908fefd186c50e9b6 /boards/addons/gdisp/board_ILI9341_spi.h
parent3b97fb798e96514057bcf17263c1e5dbdcd7da26 (diff)
downloaduGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.tar.gz
uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.tar.bz2
uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.zip
Added new type definitions - moving towards V3.0
Diffstat (limited to 'boards/addons/gdisp/board_ILI9341_spi.h')
-rw-r--r--boards/addons/gdisp/board_ILI9341_spi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/boards/addons/gdisp/board_ILI9341_spi.h b/boards/addons/gdisp/board_ILI9341_spi.h
index fbb710b0..c6bb2e56 100644
--- a/boards/addons/gdisp/board_ILI9341_spi.h
+++ b/boards/addons/gdisp/board_ILI9341_spi.h
@@ -83,14 +83,14 @@ static GFXINLINE void post_init_board(GDisplay *g) {
* @brief Set or clear the lcd reset pin.
*
* @param[in] g The GDisplay structure
- * @param[in] state TRUE = lcd in reset, FALSE = normal operation
+ * @param[in] state gTrue = lcd in reset, gFalse = normal operation
*
* @notapi
*/
-static GFXINLINE void setpin_reset(GDisplay *g, bool_t state) {
+static GFXINLINE void setpin_reset(GDisplay *g, gBool state) {
(void) g;
- if (state == TRUE) {
+ if (state) {
palClearPad(LCD_PORT, LCD_RES);
} else {
palSetPad(LCD_PORT, LCD_RES);