diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-07-06 21:36:32 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-07-06 21:36:32 +0000 |
| commit | 4ae87c8b8ab7ddbd286f5288adaddcaf0a187e31 (patch) | |
| tree | d3880b9f53a5c38d2211a1b8812724bf96913c4c /firmware/export/timer.h | |
| parent | cbed7a2cd21bb2715b39ebcd3015147a9d7ff3c2 (diff) | |
| download | rockbox-4ae87c8b8ab7ddbd286f5288adaddcaf0a187e31.zip rockbox-4ae87c8b8ab7ddbd286f5288adaddcaf0a187e31.tar.gz rockbox-4ae87c8b8ab7ddbd286f5288adaddcaf0a187e31.tar.bz2 rockbox-4ae87c8b8ab7ddbd286f5288adaddcaf0a187e31.tar.xz | |
Gigabeat: Add timer functionality. Rework tick timer setup to be exactly 100Hz. Metronome should work now but some pcm changes are needed to have faster tocks work correctly (in the works).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13806 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/timer.h')
| -rw-r--r-- | firmware/export/timer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/export/timer.h b/firmware/export/timer.h index 35994ce..63f0567 100644 --- a/firmware/export/timer.h +++ b/firmware/export/timer.h @@ -25,7 +25,6 @@ #ifndef SIMULATOR - #if defined(CPU_PP) /* Portalplayer chips use a microsecond timer. */ #define TIMER_FREQ 1000000 @@ -34,6 +33,8 @@ #define TIMER_FREQ (CPU_FREQ/2) #elif CONFIG_CPU == PNX0101 #define TIMER_FREQ 3000000 +#elif CONFIG_CPU == S3C2440 + #include "timer-target.h" #else #define TIMER_FREQ CPU_FREQ #endif @@ -46,5 +47,9 @@ void timers_adjust_prescale(int multiplier, bool enable_irq); #endif void timer_unregister(void); +/* For target-specific interface use */ +extern void (*pfn_timer)(void); +extern void (*pfn_unregister)(void); + #endif /* !SIMULATOR */ #endif /* __TIMER_H__ */ |