Fuzev2: FM - tested on 2 different models

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25818 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-05-05 04:06:44 +00:00
parent aec0af5413
commit a69e1c4a44
3 changed files with 38 additions and 7 deletions

View file

@ -232,6 +232,10 @@ int button_read_device(void)
CCU_IO &= ~(1<<12);
/* B1 is shared with FM i2c */
bool gpiob_pin0_dir = GPIOB_DIR & (1<<1);
GPIOB_DIR &= ~(1<<1);
GPIOB_PIN(0) = 1<<0;
udelay(4);
@ -266,6 +270,9 @@ int button_read_device(void)
}
}
if(gpiob_pin0_dir)
GPIOB_DIR |= 1<<1;
CCU_IO |= 1<<12;
#ifdef HAS_BUTTON_HOLD