summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/timer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/timer.h b/firmware/export/timer.h
index afd60ac66c..15b5f108a3 100644
--- a/firmware/export/timer.h
+++ b/firmware/export/timer.h
@@ -25,6 +25,14 @@
25 25
26#ifndef SIMULATOR 26#ifndef SIMULATOR
27 27
28/* Assume timer base freq. is CPU clock base freq. Portalplayer chips use a
29 microsecond timer instead. */
30#if CONFIG_CPU == PP5020 || CONFIG_CPU == PP5002
31#define TIMER_FREQ 1000000
32#else
33#define TIMER_FREQ CPU_FREQ
34#endif
35
28bool timer_register(int reg_prio, void (*unregister_callback)(void), 36bool timer_register(int reg_prio, void (*unregister_callback)(void),
29 long cycles, int int_prio, void (*timer_callback)(void)); 37 long cycles, int int_prio, void (*timer_callback)(void));
30bool timer_set_period(long cycles); 38bool timer_set_period(long cycles);