diff options
Diffstat (limited to 'utils/hwstub/tools/lua/stmp/lcdif.lua')
-rw-r--r-- | utils/hwstub/tools/lua/stmp/lcdif.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/hwstub/tools/lua/stmp/lcdif.lua b/utils/hwstub/tools/lua/stmp/lcdif.lua index 691d01505d..c2fa59824d 100644 --- a/utils/hwstub/tools/lua/stmp/lcdif.lua +++ b/utils/hwstub/tools/lua/stmp/lcdif.lua | |||
@@ -135,6 +135,9 @@ function STMP.lcdif.send_pio(data_mode, data) | |||
135 | HW.LCDIF.TRANSFER_COUNT.H_COUNT.write(#data) | 135 | HW.LCDIF.TRANSFER_COUNT.H_COUNT.write(#data) |
136 | end | 136 | end |
137 | HW.LCDIF.CTRL.RUN.set() | 137 | HW.LCDIF.CTRL.RUN.set() |
138 | if wl == 18 then | ||
139 | wl = 32 | ||
140 | end | ||
138 | local i = 1 | 141 | local i = 1 |
139 | while i <= #data do | 142 | while i <= #data do |
140 | local v = 0 | 143 | local v = 0 |
@@ -146,8 +149,10 @@ function STMP.lcdif.send_pio(data_mode, data) | |||
146 | end | 149 | end |
147 | STMP.debug(string.format("lcdif: i=%d send 0x%x", i, v)) | 150 | STMP.debug(string.format("lcdif: i=%d send 0x%x", i, v)) |
148 | while STMP.lcdif.is_busy() do STMP.debug("lcdif: fifo full") end | 151 | while STMP.lcdif.is_busy() do STMP.debug("lcdif: fifo full") end |
152 | STMP.debug(string.format("lcdif: write 0x%x", v)) | ||
149 | HW.LCDIF.DATA.write(v) | 153 | HW.LCDIF.DATA.write(v) |
150 | end | 154 | end |
155 | STMP.debug("lcdif: wait end of command") | ||
151 | STMP.lcdif.wait_ready() | 156 | STMP.lcdif.wait_ready() |
152 | end | 157 | end |
153 | 158 | ||