From f5041538574c039b07c4db8d261bd33ec0f3bab0 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Mon, 8 Jun 2009 23:05:33 +0000 Subject: FS#10048 : enable MMU and data cache on Sansa AMS to give a major speed up - cache IRAM and DRAM - map IRAM just next to DRAM to remove the need for -mlong-calls and reduce binsize - tweak delays in Fuze button code - tweak delays in Clip button code (down button sometimes doesn't respond anyway : an alternate driver is being worked on) Before reporting any problem, please check your filesystem or format your player from the OF git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21228 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sansa-clip/button-clip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/as3525/sansa-clip/button-clip.c') diff --git a/firmware/target/arm/as3525/sansa-clip/button-clip.c b/firmware/target/arm/as3525/sansa-clip/button-clip.c index b6da130d2f..2d2a3a661e 100644 --- a/firmware/target/arm/as3525/sansa-clip/button-clip.c +++ b/firmware/target/arm/as3525/sansa-clip/button-clip.c @@ -46,8 +46,9 @@ int button_read_device(void) /* This is a keypad using C4-C6 as columns and B0-B2 as rows */ GPIOC_PIN(4) = (1<<4); + asm volatile("nop\nnop\nnop\nnop\nnop\n"); /* small delay */ - /* C4B0 is unused */ + (void)GPIOB_PIN(0); /* C4B0 is unused */ if (GPIOB_PIN(1)) result |= BUTTON_VOL_UP; @@ -58,6 +59,7 @@ int button_read_device(void) GPIOC_PIN(4) = 0x00; GPIOC_PIN(5) = (1<<5); + asm volatile("nop\nnop\nnop\nnop\nnop\n"); /* small delay */ if (GPIOB_PIN(0)) result |= BUTTON_LEFT; @@ -71,6 +73,7 @@ int button_read_device(void) GPIOC_PIN(5) = 0x00; GPIOC_PIN(6) = (1<<6); + asm volatile("nop\nnop\nnop\nnop\nnop\n"); /* small delay */ if (GPIOB_PIN(0)) result |= BUTTON_DOWN; -- cgit v1.2.3