mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
aec0af5413
commit
a69e1c4a44
3 changed files with 38 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue