mirror of
https://git.code.sf.net/p/newrpl/sources
synced 2024-11-16 19:51:25 +01:00
Update multiboot to use the new LCD poweron procedure.
This commit is contained in:
parent
51f64504b8
commit
b88dc2cbf3
1 changed files with 8 additions and 2 deletions
|
@ -44,6 +44,7 @@ static void tobin(uint32_t value, char *buffer) {
|
|||
void printline(char *left_text, char *right_text) {
|
||||
|
||||
if(line==-1) {
|
||||
lcd_poweron();
|
||||
lcd_setmode(BPPMODE_4BPP, (unsigned int *)MEM_PHYS_SCREEN);
|
||||
lcd_on();
|
||||
|
||||
|
@ -69,9 +70,14 @@ int esc_pressed() {
|
|||
*GPDCON = (*GPDCON & 0xffff0000) | 0X5555; // ALL ROWS TO OUTPUT
|
||||
*GPDUDP = (*GPDUDP &0xffff0000) | 0x5555; // PULL DOWN ENABLE ON ALL OUTPUTS (TEMPORARILY SET TO INPUTS DURING SCAN)
|
||||
*GPDDAT &= 0xffff0000; // ALL ROWS LOW
|
||||
*GPDDAT |= (1 << 6);
|
||||
*GPDDAT |= (1 << 6); // JUST 1 ROW ENABLED
|
||||
|
||||
return *GPGDAT & (1 << 4);
|
||||
// READ MANY TIMES TO ALLOW SIGNALS TO STABILIZE
|
||||
int k;
|
||||
for(k=0;k<500;++k) {
|
||||
if(*GPGDAT & (1 << 4)) return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Initialize global variables region to zero
|
||||
|
|
Loading…
Reference in a new issue