freemyipod r309 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r308‎ | r309 | r310 >
Date:01:12, 2 December 2010
Author:theseven
Status:new
Tags:
Comment:
emBIOS: Make lcd_shutdown at least stop transfers until we figure out how to shut it down properly
Modified paths:
  • /embios/trunk/target/ipodnano3g/lcd.c (modified) (history)

Diff [purge]

Index: embios/trunk/target/ipodnano3g/lcd.c
@@ -69,10 +69,6 @@
7070 return (PDAT6 & 0x30) >> 4;
7171 }
7272
73 -void lcd_shutdown()
74 -{
75 -}
76 -
7773 bool displaylcd_busy()
7874 {
7975 return DMAC0C0CONFIG & 1;
@@ -142,6 +138,12 @@
143139 DMAC0C0CONFIG = 0x88c1;
144140 }
145141
 142+void lcd_shutdown()
 143+{
 144+ displaylcd_sync();
 145+ // TODO: Shut down properly
 146+}
 147+
146148 void INT_DMAC0C0()
147149 {
148150 DMAC0INTTCCLR = 1;