diff options
author | Dmytro Milinevskyy <milinevskyy@gmail.com> | 2013-04-07 06:37:05 +0200 |
---|---|---|
committer | Dmytro Milinevskyy <milinevskyy@gmail.com> | 2013-04-07 06:37:05 +0200 |
commit | e51d3591ad5d7e99d47a335c63213747f4eccd62 (patch) | |
tree | 4f6c3cdafda08a75bdb9a01c5aea8e4219943092 /drivers | |
parent | dc14f8713eb2e90e291544953835448b0af87109 (diff) | |
download | uGFX-e51d3591ad5d7e99d47a335c63213747f4eccd62.tar.gz uGFX-e51d3591ad5d7e99d47a335c63213747f4eccd62.tar.bz2 uGFX-e51d3591ad5d7e99d47a335c63213747f4eccd62.zip |
[ILI9320][olimex][pic32] extra dummy read after index write
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) { |