diff options
author | Tectu <joel@unormal.org> | 2013-04-07 02:59:22 -0700 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2013-04-07 02:59:22 -0700 |
commit | 05aebebb8bcaa6213076ebf5e191974bb5741d46 (patch) | |
tree | 81913de0c947ef2a5c8cd9f620d5490f960a4498 /drivers | |
parent | 22e7150f2d3120fd26f68452bc756b4d0ee52476 (diff) | |
parent | e51d3591ad5d7e99d47a335c63213747f4eccd62 (diff) | |
download | uGFX-05aebebb8bcaa6213076ebf5e191974bb5741d46.tar.gz uGFX-05aebebb8bcaa6213076ebf5e191974bb5741d46.tar.bz2 uGFX-05aebebb8bcaa6213076ebf5e191974bb5741d46.zip |
Merge pull request #62 from niamster/master
A fix in pic32mx LLD for ILI9320
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h index ec63352a..f208f917 100644 --- a/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h +++ b/drivers/gdisp/ILI9320/gdisp_lld_board_olimex_pic32mx_lcd.h @@ -77,11 +77,16 @@ static noinline void gdisp_lld_reset_pin(bool_t state) { } static noinline void gdisp_lld_write_index(uint16_t data) { + volatile uint16_t dummy; + PmpWaitBusy(); palClearPad(IOPORTA, 10); PMDIN = data; PmpWaitBusy(); palSetPad(IOPORTA, 10); + + dummy = PMDIN; + (void)dummy; } static noinline void gdisp_lld_write_data(uint16_t data) { |