From 4a63ac7c00a6d560b1429315fbeba3dced5376f8 Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Wed, 21 Oct 2009 18:53:41 +0000 Subject: Add iPod Nano 2G µsec timer, and use it in the clickwheel driver. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23309 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/ipod/button-clickwheel.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'firmware/target/arm/ipod/button-clickwheel.c') diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c index 17f9f723f5..9a2f38bc88 100644 --- a/firmware/target/arm/ipod/button-clickwheel.c +++ b/firmware/target/arm/ipod/button-clickwheel.c @@ -40,18 +40,9 @@ #include "power.h" #include "powermgmt.h" -#ifdef CPU_PP -/* PortalPlayer uses the USEC timer */ #define WHEEL_FAST_OFF_TIMEOUT 250000 /* timeout for acceleration = 250ms */ #define WHEEL_REPEAT_TIMEOUT 250000 /* timeout for button repeat = 250ms */ #define WHEEL_UNTOUCH_TIMEOUT 150000 /* timeout for untouching wheel = 150ms */ -#else -/* Other targets use current_tick */ -#define WHEEL_FAST_OFF_TIMEOUT (HZ/4) /* timeout for acceleration = 250ms */ -#define WHEEL_REPEAT_TIMEOUT (HZ/4) /* timeout for button repeat = 250ms */ -#define WHEEL_UNTOUCH_TIMEOUT ((HZ*15)/100) /* timeout for untouching wheel = 150ms */ - -#endif #ifdef CPU_PP #define CLICKWHEEL_DATA (*(volatile unsigned long*)(0x7000c140)) @@ -131,11 +122,7 @@ static inline int ipod_4g_button_read(void) btn |= BUTTON_MENU; if (status & 0x40000000) { -#ifdef CPU_PP unsigned long usec = USEC_TIMER; -#else - unsigned long usec = current_tick; -#endif /* Highest wheel = 0x5F, clockwise increases */ new_wheel_value = (status >> 16) & 0x7f; -- cgit v1.2.3