mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Fuzev2 button fixes
- remove udelay(1) and use the previous busy loop : the delay was too long for proper hold detection - remove the 2nd delay (unneeded) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25741 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
621cf62702
commit
3e37460357
1 changed files with 2 additions and 3 deletions
|
|
@ -233,14 +233,13 @@ int button_read_device(void)
|
|||
CCU_IO &= ~(1<<12);
|
||||
|
||||
GPIOB_PIN(0) = 1<<0;
|
||||
udelay(1);
|
||||
for(delay = 500; delay; delay--)
|
||||
nop;
|
||||
|
||||
gpiod6 = GPIOD_PIN(6);
|
||||
|
||||
GPIOB_PIN(0) = 0;
|
||||
|
||||
udelay(1);
|
||||
|
||||
if (GPIOC_PIN(1) & 1<<1)
|
||||
btn |= BUTTON_DOWN;
|
||||
if (GPIOC_PIN(2) & 1<<2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue