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:
Rafaël Carré 2010-04-27 21:01:31 +00:00
parent 621cf62702
commit 3e37460357

View file

@ -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)