diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-10-03 09:24:36 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-10-03 09:24:36 +0000 |
commit | cfb073c452c0218a82e23fb5f5f89043719f2c07 (patch) | |
tree | 5aff8555b218e10037c086aaad3aaec1b4d677c8 /firmware/export/timer.h | |
parent | 7190cf2ed9cfa854d81e7bf9c0e8a1ef71935c1f (diff) | |
download | rockbox-cfb073c452c0218a82e23fb5f5f89043719f2c07.tar.gz rockbox-cfb073c452c0218a82e23fb5f5f89043719f2c07.zip |
Coldfire: New timer handling on CPU frequency change, adjusting the prescaler on the fly, for both tick and user timer. Precondition is that the higher frequencies are integer multiples of the base: now NORMAL is 45 MHz and MAX is 124 MHz. Removes the need for applications with longer timer periods (>= 10 ms) to boost the CPU all the time, e.g. the grayscale lib. Timer counts are now always based on the base frequency (CPU_FREQ). * Adjusted the RAM refresh timers to the new frequencies (all frequencies for H100) * All: Fixed the tick timer count being off by one.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7576 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/timer.h')
-rw-r--r-- | firmware/export/timer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/export/timer.h b/firmware/export/timer.h index 73936ca28c..afd60ac66c 100644 --- a/firmware/export/timer.h +++ b/firmware/export/timer.h @@ -28,6 +28,9 @@ 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); +#ifdef CPU_COLDFIRE +void timers_adjust_prescale(int multiplier, bool enable_irq); +#endif void timer_unregister(void); #endif /* !SIMULATOR */ |