diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-04-27 09:34:29 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-04-27 09:34:29 +0000 |
commit | 845af676f8a37910613e7ce6b59dc229bb1a89c1 (patch) | |
tree | 0cc577ce1f31aea64a70b83f9323512da56912d4 /firmware/target/arm/as3525/kernel-as3525.c | |
parent | f2f34881ec84fb18020ae9a492f347e87c36359c (diff) | |
download | rockbox-845af676f8a37910613e7ce6b59dc229bb1a89c1.tar.gz rockbox-845af676f8a37910613e7ce6b59dc229bb1a89c1.zip |
as3525(v2): Add a somewhat inaccurate udelay (-0.5/+1.0µs). It should work good for some huge delays.
Use it in fuzev2 to improve some big delays (correct the biggest one to actually wait for the fifo to empty), and use it in the sd drivers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25734 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/kernel-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/kernel-as3525.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/firmware/target/arm/as3525/kernel-as3525.c b/firmware/target/arm/as3525/kernel-as3525.c index ebaef71c99..4ae1a03809 100644 --- a/firmware/target/arm/as3525/kernel-as3525.c +++ b/firmware/target/arm/as3525/kernel-as3525.c @@ -25,13 +25,6 @@ #include "timer.h" #ifdef HAVE_SCROLLWHEEL -/* let the timer interrupt twice as often for the scrollwheel polling */ -#define KERNEL_TIMER_FREQ (TIMER_FREQ/2) -#else -#define KERNEL_TIMER_FREQ TIMER_FREQ -#endif - -#ifdef HAVE_SCROLLWHEEL #include "button-target.h" /* The scrollwheel is polled every 5 ms (the tick tasks only every 10) */ static int poll_scrollwheel = 0; |