aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/ILI9481
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-21 15:13:10 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-21 15:13:10 +1000
commit0535c67eab412e72223bc06a528c5bf7cd4aeb22 (patch)
tree1349ae0420683f03ed09ca6d8aca52acbc7af9b5 /drivers/gdisp/ILI9481
parent0b9db701a1d52c8a6d63ca692619b0dde47805d1 (diff)
downloaduGFX-0535c67eab412e72223bc06a528c5bf7cd4aeb22.tar.gz
uGFX-0535c67eab412e72223bc06a528c5bf7cd4aeb22.tar.bz2
uGFX-0535c67eab412e72223bc06a528c5bf7cd4aeb22.zip
Add support for a driver private area (as well as a board private area)
Diffstat (limited to 'drivers/gdisp/ILI9481')
-rw-r--r--drivers/gdisp/ILI9481/board_ILI9481_firebullstm32f103.h4
-rw-r--r--drivers/gdisp/ILI9481/gdisp_lld.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gdisp/ILI9481/board_ILI9481_firebullstm32f103.h b/drivers/gdisp/ILI9481/board_ILI9481_firebullstm32f103.h
index 9933d17b..52d8afda 100644
--- a/drivers/gdisp/ILI9481/board_ILI9481_firebullstm32f103.h
+++ b/drivers/gdisp/ILI9481/board_ILI9481_firebullstm32f103.h
@@ -27,8 +27,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/ILI9481/gdisp_lld.c b/drivers/gdisp/ILI9481/gdisp_lld.c
index fc00be10..5af12986 100644
--- a/drivers/gdisp/ILI9481/gdisp_lld.c
+++ b/drivers/gdisp/ILI9481/gdisp_lld.c
@@ -71,7 +71,10 @@ static void set_viewport(GDisplay* g) {
/*===========================================================================*/
LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
- /* Initialise your display */
+ // No private area for this controller
+ g->priv = 0;
+
+ // Initialise the board interface
init_board(g);
/* Hardware reset */