From 0535c67eab412e72223bc06a528c5bf7cd4aeb22 Mon Sep 17 00:00:00 2001 From: inmarket Date: Mon, 21 Oct 2013 15:13:10 +1000 Subject: Add support for a driver private area (as well as a board private area) --- drivers/gdisp/ILI9325/board_ILI9325_hy_stm32_100p.h | 4 ++-- drivers/gdisp/ILI9325/gdisp_lld.c | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'drivers/gdisp/ILI9325') diff --git a/drivers/gdisp/ILI9325/board_ILI9325_hy_stm32_100p.h b/drivers/gdisp/ILI9325/board_ILI9325_hy_stm32_100p.h index ae9e96fc..02949605 100644 --- a/drivers/gdisp/ILI9325/board_ILI9325_hy_stm32_100p.h +++ b/drivers/gdisp/ILI9325/board_ILI9325_hy_stm32_100p.h @@ -33,8 +33,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/ILI9325/gdisp_lld.c b/drivers/gdisp/ILI9325/gdisp_lld.c index 8a4b8603..6bb649b1 100644 --- a/drivers/gdisp/ILI9325/gdisp_lld.c +++ b/drivers/gdisp/ILI9325/gdisp_lld.c @@ -99,7 +99,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 */ -- cgit v1.2.3