From d16a8b8845ed496e9375c5dfac6da2011c9eb362 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sun, 5 Feb 2006 16:52:22 +0000 Subject: More iPod 3G changes from Seven Le Mesle, and some unification of the iPod code from me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8581 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/system.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/export/system.h') diff --git a/firmware/export/system.h b/firmware/export/system.h index b5f4bbf2db..380c229f1d 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -29,7 +29,7 @@ extern void system_init(void); extern long cpu_frequency; -#if CONFIG_CPU==PP5020 +#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) #define inl(a) (*(volatile unsigned long *) (a)) #define outl(a,b) (*(volatile unsigned long *) (b) = (a)) #define inb(a) (*(volatile unsigned char *) (a)) @@ -40,8 +40,8 @@ extern unsigned int ipod_hw_rev; static inline void udelay(unsigned usecs) { - unsigned start = inl(0x60005010); - while ((inl(0x60005010) - start) < usecs); + unsigned start = USEC_TIMER; + while ((USEC_TIMER - start) < usecs); } #endif -- cgit v1.2.3