forked from len0rd/rockbox
Use a better place to enable the interrupts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16918 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2016ab4c96
commit
1f75bd5a8e
1 changed files with 1 additions and 1 deletions
|
|
@ -211,13 +211,13 @@ int button_read_device(void)
|
|||
{
|
||||
GPIOB_OUTPUT_VAL |= 0x01; /* enable wheel */
|
||||
udelay(50); /* let the voltage settle */
|
||||
GPIOA_INT_EN = 0xff; /* enable wheel interrupts */
|
||||
}
|
||||
wheel_value = GPIOA_INPUT_VAL >> 6;
|
||||
if (wheel_value != last_wheel_value)
|
||||
{
|
||||
last_wheel_value = wheel_value;
|
||||
wheel_timeout = WHEEL_TIMEOUT; /* keep wheel enabled */
|
||||
GPIOA_INT_EN = 0xff; /* enable wheel interrupts */
|
||||
}
|
||||
if (wheel_timeout)
|
||||
wheel_timeout--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue