Subversion Repositories freemyipod

Rev

Rev 278 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 278 Rev 309
Line 67... Line 67...
67
static uint32_t lcd_detect()
67
static uint32_t lcd_detect()
68
{
68
{
69
    return (PDAT6 & 0x30) >> 4;
69
    return (PDAT6 & 0x30) >> 4;
70
}
70
}
71
 
71
 
72
void lcd_shutdown()
-
 
73
{
-
 
74
}
-
 
75
 
-
 
76
bool displaylcd_busy()
72
bool displaylcd_busy()
77
{
73
{
78
    return DMAC0C0CONFIG & 1;
74
    return DMAC0C0CONFIG & 1;
79
}
75
}
80
 
76
 
Line 140... Line 136...
140
    }
136
    }
141
    clean_dcache();
137
    clean_dcache();
142
    DMAC0C0CONFIG = 0x88c1;
138
    DMAC0C0CONFIG = 0x88c1;
143
}
139
}
144
 
140
 
-
 
141
void lcd_shutdown()
-
 
142
{
-
 
143
    displaylcd_sync();
-
 
144
    // TODO: Shut down properly
-
 
145
}
-
 
146
 
145
void INT_DMAC0C0()
147
void INT_DMAC0C0()
146
{
148
{
147
    DMAC0INTTCCLR = 1;
149
    DMAC0INTTCCLR = 1;
148
    lcdconsole_callback();
150
    lcdconsole_callback();
149
}
151
}