mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Fuzev2: don't disable interrupts in fm code, allow button tick to run
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25819 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a69e1c4a44
commit
145135f99f
2 changed files with 3 additions and 6 deletions
|
|
@ -230,6 +230,7 @@ int button_read_device(void)
|
|||
int delay = 30;
|
||||
while(delay--) nop;
|
||||
|
||||
bool ccu_io_bit12 = CCU_IO & (1<<12);
|
||||
CCU_IO &= ~(1<<12);
|
||||
|
||||
/* B1 is shared with FM i2c */
|
||||
|
|
@ -273,7 +274,8 @@ int button_read_device(void)
|
|||
if(gpiob_pin0_dir)
|
||||
GPIOB_DIR |= 1<<1;
|
||||
|
||||
CCU_IO |= 1<<12;
|
||||
if(ccu_io_bit12)
|
||||
CCU_IO |= 1<<12;
|
||||
|
||||
#ifdef HAS_BUTTON_HOLD
|
||||
#ifndef BOOTLOADER
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue