summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-05 16:52:22 +0000
committerDave Chapman <dave@dchapman.com>2006-02-05 16:52:22 +0000
commitd16a8b8845ed496e9375c5dfac6da2011c9eb362 (patch)
tree9adc8e92f61a58bdb02e9c59af8dfd7ddd3eff61 /firmware/export/system.h
parente8048cefed2715dcecb82ae49549ed619cf3104b (diff)
downloadrockbox-d16a8b8845ed496e9375c5dfac6da2011c9eb362.tar.gz
rockbox-d16a8b8845ed496e9375c5dfac6da2011c9eb362.zip
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
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h6
1 files changed, 3 insertions, 3 deletions
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);
29 29
30extern long cpu_frequency; 30extern long cpu_frequency;
31 31
32#if CONFIG_CPU==PP5020 32#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)
33#define inl(a) (*(volatile unsigned long *) (a)) 33#define inl(a) (*(volatile unsigned long *) (a))
34#define outl(a,b) (*(volatile unsigned long *) (b) = (a)) 34#define outl(a,b) (*(volatile unsigned long *) (b) = (a))
35#define inb(a) (*(volatile unsigned char *) (a)) 35#define inb(a) (*(volatile unsigned char *) (a))
@@ -40,8 +40,8 @@ extern unsigned int ipod_hw_rev;
40 40
41static inline void udelay(unsigned usecs) 41static inline void udelay(unsigned usecs)
42{ 42{
43 unsigned start = inl(0x60005010); 43 unsigned start = USEC_TIMER;
44 while ((inl(0x60005010) - start) < usecs); 44 while ((USEC_TIMER - start) < usecs);
45} 45}
46#endif 46#endif
47 47