summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2007-07-02 18:47:02 +0000
committerMagnus Holmgren <magnushol@gmail.com>2007-07-02 18:47:02 +0000
commit7d5deaa5a032f0f5f1617b8d73b3c412868bcf88 (patch)
treefe2db35952ef67a88a8d5d9bc9b61cffe579c855
parent473c1914aac770a88baa3ce6600ea089a87ad66c (diff)
downloadrockbox-7d5deaa5a032f0f5f1617b8d73b3c412868bcf88.tar.gz
rockbox-7d5deaa5a032f0f5f1617b8d73b3c412868bcf88.zip
H1x0: Increase delay during button reads. Hopefully fixes the scroll down problem (see forum thread 11081.0).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13765 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/coldfire/iriver/h100/adc-h100.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/target/coldfire/iriver/h100/adc-h100.c b/firmware/target/coldfire/iriver/h100/adc-h100.c
index fb5afce9f5..777ab2ff73 100644
--- a/firmware/target/coldfire/iriver/h100/adc-h100.c
+++ b/firmware/target/coldfire/iriver/h100/adc-h100.c
@@ -35,15 +35,15 @@ static unsigned char adcdata[NUM_ADC_CHANNELS];
35 35
36/* delay loop */ 36/* delay loop */
37#define DELAY \ 37#define DELAY \
38 ({ \ 38 ({ \
39 int _x_; \ 39 int _x_; \
40 asm volatile ( \ 40 asm volatile ( \
41 "move.l #9, %[_x_] \r\n" \ 41 "move.l #11, %[_x_] \r\n" \
42 "1: \r\n" \ 42 "1: \r\n" \
43 "subq.l #1, %[_x_] \r\n" \ 43 "subq.l #1, %[_x_] \r\n" \
44 "bhi.b 1b \r\n" \ 44 "bhi.b 1b \r\n" \
45 : [_x_]"=&d"(_x_) \ 45 : [_x_]"=&d"(_x_) \
46 ); \ 46 ); \
47 }) 47 })
48 48
49unsigned short adc_scan(int channel) 49unsigned short adc_scan(int channel)