summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2016-01-18 23:51:25 +0100
committerMichael Giacomelli <giac2000@hotmail.com>2016-01-18 23:51:25 +0100
commit9f364a13c6e35393396e25a61918a445eab83d82 (patch)
treeda4b55ef474f9472ddb45651dd2c9ffb0ac760a5 /firmware/target/arm/as3525
parent784790dbec40695bd6d74c862d9e5730e17ba9fd (diff)
downloadrockbox-9f364a13c6e35393396e25a61918a445eab83d82.tar.gz
rockbox-9f364a13c6e35393396e25a61918a445eab83d82.tar.bz2
rockbox-9f364a13c6e35393396e25a61918a445eab83d82.zip
Increase button delays in preperation for frequency scaling.
When run at lower clock speeds, delays seem to need to be a little longer in absolute time. Change-Id: I5373f43094302e6fa3f0a79126e54cfccd90f5a4
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
index 1b30e112fd..319b3e33d4 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
@@ -246,12 +246,13 @@ int button_read_device(void)
GPIOB_DIR &= ~(1<<1);
GPIOB_PIN(0) = 1<<0;
- udelay(4);
+ /*note that lower delays (4, 2 us) work without frequency scaling*/
+ udelay(20);
gpiod6 = GPIOD_PIN(6);
GPIOB_PIN(0) = 0;
- udelay(2);
+ udelay(5);
btn = GPIOC_PIN_MASK(0x3e) | (GPIOB_PIN(1) >> 1);