From 8b21c08096bf2333e613cb25a90eb59dd075fbf4 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 3 Apr 2013 18:02:38 +0200 Subject: [PATCH] ILI9320 fix --- drivers/gdisp/ILI9320/gdisp_lld_board_example.h | 8 ++++++++ drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_example.h b/drivers/gdisp/ILI9320/gdisp_lld_board_example.h index 3571e2b4..2f762c42 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_example.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_example.h @@ -37,6 +37,14 @@ static inline void gdisp_lld_reset_pin(bool_t state) { #error "ILI9320: You must implement setpin_reset routine for your board" } +static inline void acquire_bus(void) { + #error "ILI9320: You must implement setpin_reset routine for your board" +} + +static inline void release_bus(void) { + #error "ILI9320: You must implement setpin_reset routine for your board" +} + static inline void gdisp_lld_write_index(uint16_t data) { #error "ILI9320: You must implement write_index routine for your board" } diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h index c8a518c3..7e15a2e0 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_stm32_lcd.h @@ -61,6 +61,14 @@ static inline void gdisp_lld_reset_pin(bool_t state) { palSetPad(GPIOE, GPIOE_TFT_RST); } +static inline void acquire_bus(void) { + /* Nothing to do here since LCD is the only device on that bus */ +} + +static inline void release_bus(void) { + /* Nothing to do here since LCD is the only device on that bus */ +} + static inline void gdisp_lld_write_index(uint16_t reg) { GDISP_REG = reg; }