diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-05 16:52:22 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-05 16:52:22 +0000 |
commit | d16a8b8845ed496e9375c5dfac6da2011c9eb362 (patch) | |
tree | 9adc8e92f61a58bdb02e9c59af8dfd7ddd3eff61 /firmware/export/system.h | |
parent | e8048cefed2715dcecb82ae49549ed619cf3104b (diff) | |
download | rockbox-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.h | 6 |
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 | ||
30 | extern long cpu_frequency; | 30 | extern 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 | ||
41 | static inline void udelay(unsigned usecs) | 41 | static 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 | ||