diff options
Diffstat (limited to 'drivers/gdisp/ILI9320')
-rw-r--r-- | drivers/gdisp/ILI9320/board_ILI9320_olimex_pic32mx_lcd.h | 4 | ||||
-rw-r--r-- | drivers/gdisp/ILI9320/board_ILI9320_olimex_stm32_lcd.h | 4 | ||||
-rw-r--r-- | drivers/gdisp/ILI9320/gdisp_lld.c | 5 |
3 files changed, 8 insertions, 5 deletions
diff --git a/drivers/gdisp/ILI9320/board_ILI9320_olimex_pic32mx_lcd.h b/drivers/gdisp/ILI9320/board_ILI9320_olimex_pic32mx_lcd.h index cf101aaf..5315127b 100644 --- a/drivers/gdisp/ILI9320/board_ILI9320_olimex_pic32mx_lcd.h +++ b/drivers/gdisp/ILI9320/board_ILI9320_olimex_pic32mx_lcd.h @@ -19,8 +19,8 @@ static void init_board(GDisplay *g) { - // As we are not using multiple displays we set g->priv to NULL as we don't use it. - g->priv = 0; + // As we are not using multiple displays we set g->board to NULL as we don't use it. + g->board = 0; switch(g->controllerdisplay) { case 0: // Set up for Display 0 diff --git a/drivers/gdisp/ILI9320/board_ILI9320_olimex_stm32_lcd.h b/drivers/gdisp/ILI9320/board_ILI9320_olimex_stm32_lcd.h index 4738db61..8e79009a 100644 --- a/drivers/gdisp/ILI9320/board_ILI9320_olimex_stm32_lcd.h +++ b/drivers/gdisp/ILI9320/board_ILI9320_olimex_stm32_lcd.h @@ -20,8 +20,8 @@ static inline void init_board(GDisplay *g) { - // As we are not using multiple displays we set g->priv to NULL as we don't use it. - g->priv = 0; + // As we are not using multiple displays we set g->board to NULL as we don't use it. + g->board = 0; switch(g->controllerdisplay) { case 0: // Set up for Display 0 diff --git a/drivers/gdisp/ILI9320/gdisp_lld.c b/drivers/gdisp/ILI9320/gdisp_lld.c index d4639617..bf82a88a 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld.c +++ b/drivers/gdisp/ILI9320/gdisp_lld.c @@ -98,7 +98,10 @@ static void set_viewport(GDisplay *g) { LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { uint16_t cver; - /* Initialise your display */ + // No private area for this controller + g->priv = 0; + + // Initialise the board interface init_board(g); /* Hardware reset */ |