diff options
| author | Kevin Ferrare <kevin@rockbox.org> | 2007-07-29 03:43:37 +0000 |
|---|---|---|
| committer | Kevin Ferrare <kevin@rockbox.org> | 2007-07-29 03:43:37 +0000 |
| commit | 81aac2a43074d7bf9e907309e29f88dc0c5dd2b8 (patch) | |
| tree | 95c0323f06c462cacbb84dfa6d5335641b9cda12 /firmware/export/timer.h | |
| parent | 9b11f8115005e8e7be4aff8a8b59cf58dce9974e (diff) | |
| download | rockbox-81aac2a43074d7bf9e907309e29f88dc0c5dd2b8.zip rockbox-81aac2a43074d7bf9e907309e29f88dc0c5dd2b8.tar.gz rockbox-81aac2a43074d7bf9e907309e29f88dc0c5dd2b8.tar.bz2 rockbox-81aac2a43074d7bf9e907309e29f88dc0c5dd2b8.tar.xz | |
Use multi-screen api for metronome plugin, and made it run in the simulator by implementing the timer functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14046 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/timer.h')
| -rw-r--r-- | firmware/export/timer.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/export/timer.h b/firmware/export/timer.h index 63f0567..e9c652d 100644 --- a/firmware/export/timer.h +++ b/firmware/export/timer.h @@ -23,8 +23,6 @@ #include <stdbool.h> #include "config.h" -#ifndef SIMULATOR - #if defined(CPU_PP) /* Portalplayer chips use a microsecond timer. */ #define TIMER_FREQ 1000000 @@ -35,10 +33,11 @@ #define TIMER_FREQ 3000000 #elif CONFIG_CPU == S3C2440 #include "timer-target.h" +#elif SIMULATOR + #define TIMER_FREQ 1000000 #else #define TIMER_FREQ CPU_FREQ #endif - bool timer_register(int reg_prio, void (*unregister_callback)(void), long cycles, int int_prio, void (*timer_callback)(void)); bool timer_set_period(long cycles); @@ -51,5 +50,4 @@ void timer_unregister(void); extern void (*pfn_timer)(void); extern void (*pfn_unregister)(void); -#endif /* !SIMULATOR */ #endif /* __TIMER_H__ */ |