mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-14 07:32:35 -05:00
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
This commit is contained in:
parent
473c1914aa
commit
7d5deaa5a0
1 changed files with 9 additions and 9 deletions
|
|
@ -35,15 +35,15 @@ static unsigned char adcdata[NUM_ADC_CHANNELS];
|
|||
|
||||
/* delay loop */
|
||||
#define DELAY \
|
||||
({ \
|
||||
int _x_; \
|
||||
asm volatile ( \
|
||||
"move.l #9, %[_x_] \r\n" \
|
||||
"1: \r\n" \
|
||||
"subq.l #1, %[_x_] \r\n" \
|
||||
"bhi.b 1b \r\n" \
|
||||
: [_x_]"=&d"(_x_) \
|
||||
); \
|
||||
({ \
|
||||
int _x_; \
|
||||
asm volatile ( \
|
||||
"move.l #11, %[_x_] \r\n" \
|
||||
"1: \r\n" \
|
||||
"subq.l #1, %[_x_] \r\n" \
|
||||
"bhi.b 1b \r\n" \
|
||||
: [_x_]"=&d"(_x_) \
|
||||
); \
|
||||
})
|
||||
|
||||
unsigned short adc_scan(int channel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue