summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/iriver/h10
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-08-26 09:15:42 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-08-26 09:15:42 +0000
commit7c13843805adbadb744cd375343f41471e837df5 (patch)
treeb6add016b210d580fdf4de1d1dbe74914add5092 /firmware/target/arm/iriver/h10
parentc442de42746aa4bddf7d562ef9669b8ab8190c94 (diff)
downloadrockbox-7c13843805adbadb744cd375343f41471e837df5.tar.gz
rockbox-7c13843805adbadb744cd375343f41471e837df5.tar.bz2
rockbox-7c13843805adbadb744cd375343f41471e837df5.zip
Fix lcd_update_rect() on 5/6GB H10 (thanks to Laurent Baum). Fix usb_detect() on all H10 models.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10753 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver/h10')
-rw-r--r--firmware/target/arm/iriver/h10/lcd-h10.c4
-rw-r--r--firmware/target/arm/iriver/h10/usb-h10.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/iriver/h10/lcd-h10.c b/firmware/target/arm/iriver/h10/lcd-h10.c
index aa71001601..e1532bd5a7 100644
--- a/firmware/target/arm/iriver/h10/lcd-h10.c
+++ b/firmware/target/arm/iriver/h10/lcd-h10.c
@@ -104,8 +104,8 @@ static inline bool timer_check(int clock_start, int usecs)
#define R_GATE_SCAN_START_POS 0x40
#define R_1ST_SCR_DRV_POS 0x42
#define R_2ND_SCR_DRV_POS 0x43
-#define R_HORIZ_RAM_ADDR_POS 0x44
-#define R_VERT_RAM_ADDR_POS 0x45
+#define R_VERT_RAM_ADDR_POS 0x44
+#define R_HORIZ_RAM_ADDR_POS 0x45
#endif
diff --git a/firmware/target/arm/iriver/h10/usb-h10.c b/firmware/target/arm/iriver/h10/usb-h10.c
index c6d275a9be..bf687fef47 100644
--- a/firmware/target/arm/iriver/h10/usb-h10.c
+++ b/firmware/target/arm/iriver/h10/usb-h10.c
@@ -87,7 +87,7 @@ void usb_init_device(void)
bool usb_detect(void)
{
- return (GPIOA_INPUT_VAL & 0x04)?true:false;
+ return (GPIOL_INPUT_VAL & 0x04)?true:false;
}
void usb_enable(bool on)