freemyipod r868 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r867‎ | r868 | r869 >
Date:00:16, 1 July 2012
Author:user890104
Status:new
Tags:
Comment:
emCORE: fix an annoying LCD DMA bug, thanks to TheSeven
Modified paths:
  • /emcore/trunk/target/ipodnano2g/lcd.c (modified) (history)

Diff [purge]

Index: emcore/trunk/target/ipodnano2g/lcd.c
@@ -147,10 +147,11 @@
148148 LCDWDATA = *in++;
149149 pixels--;
150150 }
 151+ if (!pixels) return;
151152 lcd_dma_busy = true;
152153 DMABASE8 = in;
153154 DMACON8 = 0x20590000;
154 - DMATCNT8 = pixels / 4;
 155+ DMATCNT8 = (pixels / 4) - 1;
155156 clean_dcache();
156157 DMACOM8 = 4;
157158 }