diff options
| author | Dave Chapman <dave@dchapman.com> | 2005-11-07 23:07:19 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2005-11-07 23:07:19 +0000 |
| commit | 77372d12189c70cb810a7e88bc2ee7a56f64646c (patch) | |
| tree | 057d0d474042874850b6262b78f80d2335cb0629 /firmware/export/kernel.h | |
| parent | 3cd5c646d03089df8d58b773d4a1bc8323021adc (diff) | |
| download | rockbox-77372d12189c70cb810a7e88bc2ee7a56f64646c.zip rockbox-77372d12189c70cb810a7e88bc2ee7a56f64646c.tar.gz rockbox-77372d12189c70cb810a7e88bc2ee7a56f64646c.tar.bz2 rockbox-77372d12189c70cb810a7e88bc2ee7a56f64646c.tar.xz | |
Initial commit of work-in-progress iPod port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/kernel.h')
| -rw-r--r-- | firmware/export/kernel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index 039af56..ab966da 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h @@ -20,6 +20,7 @@ #define _KERNEL_H_ #include <stdbool.h> +#include "config.h" /* wrap-safe macros for tick comparison */ #define TIME_AFTER(a,b) ((long)(b) - (long)(a) < 0) @@ -65,7 +66,12 @@ struct mutex }; /* global tick variable */ +#if (CONFIG_CPU==PP5020) +/* A temporary hack until timer interrupt is enabled - use the RTC */ +#define current_tick ((*((volatile unsigned long*)0x60005010))/10000) +#else extern long current_tick; +#endif #ifdef SIMULATOR #define sleep(x) sim_sleep(x) |