From 145135f99f9453af8593c8a9e1cae8556abde3de Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Wed, 5 May 2010 04:13:15 +0000 Subject: 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 --- firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c') diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c index fcda5226ca..4486af95b1 100644 --- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c +++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c @@ -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 -- cgit v1.2.3