diff options
author | Jack Halpin <jack.halpin@gmail.com> | 2009-06-03 13:11:21 +0000 |
---|---|---|
committer | Jack Halpin <jack.halpin@gmail.com> | 2009-06-03 13:11:21 +0000 |
commit | a0c4b8bffb752fb520bffb92e4e39cf3864785f8 (patch) | |
tree | b4f8b31a8ff5c903d975627e3baa6ead4f77ccaa /firmware/target/arm/as3525/sansa-e200v2 | |
parent | d1b0ee9f046ea3ee9879bb7f35e3795d6efe08c5 (diff) |
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21182 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-e200v2')
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c | 3 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c index 915475353c..0e0e157a54 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c @@ -154,6 +154,9 @@ unsigned short button_read_dbop(void) DBOP_CTRL |= (1<<15); /* start read */ while (!(DBOP_STAT & (1<<16))); /* wait for valid data */ + int delay=10; + while(delay--); /* short delay before reading */ + _dbop_din = DBOP_DIN; /* Read dbop data*/ /* Reset dbop for output */ diff --git a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c index 840d3c4c3c..ece773f2fa 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c @@ -138,6 +138,10 @@ static void lcd_write_cmd(int cmd) /* Wait for fifo to empty */ while ((DBOP_STAT & (1<<10)) == 0); + /* Fuze OF has this loop and it seems to help us now also */ + int delay=8; + while(delay--); + DBOP_TIMPOL_23 = 0xa167e06f; } |