summaryrefslogtreecommitdiff
path: root/firmware/export/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/timer.h')
-rw-r--r--firmware/export/timer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/export/timer.h b/firmware/export/timer.h
index f3faf0908e..678d9ad8c6 100644
--- a/firmware/export/timer.h
+++ b/firmware/export/timer.h
@@ -25,19 +25,19 @@
25#include <stdbool.h> 25#include <stdbool.h>
26#include "config.h" 26#include "config.h"
27 27
28#if defined(CPU_PP) 28#if defined(SIMULATOR)
29 /* Portalplayer chips use a microsecond timer. */
30 #define TIMER_FREQ 1000000 29 #define TIMER_FREQ 1000000
31#elif CONFIG_CPU == S3C2440 || CONFIG_CPU == DM320 || CONFIG_CPU == TCC7801 \ 30#elif CONFIG_CPU == S3C2440 || CONFIG_CPU == DM320 || CONFIG_CPU == TCC7801 \
32 || defined(CPU_TCC77X) || CONFIG_CPU == AS3525 || CONFIG_CPU == IMX31L \ 31 || defined(CPU_TCC77X) || CONFIG_CPU == AS3525 || CONFIG_CPU == IMX31L \
33 || CONFIG_CPU == JZ4732 || CONFIG_CPU == PNX0101 \ 32 || CONFIG_CPU == JZ4732 || CONFIG_CPU == PNX0101 \
34 || defined(CPU_COLDFIRE) || CONFIG_CPU == SH7034 33 || defined(CPU_COLDFIRE) || CONFIG_CPU == SH7034 || defined(CPU_PP)
35 #include "timer-target.h" 34 #include "timer-target.h"
36#elif defined(SIMULATOR) 35#else
37 #define TIMER_FREQ 1000000 36 #warning "Target without timer-target.h"
38#endif 37#endif
39 38
40#ifndef TIMER_FREQ 39#ifndef TIMER_FREQ
40 #warning "TIMER_FREQ not defined"
41 #define TIMER_FREQ CPU_FREQ 41 #define TIMER_FREQ CPU_FREQ
42#endif 42#endif
43bool timer_register(int reg_prio, void (*unregister_callback)(void), 43bool timer_register(int reg_prio, void (*unregister_callback)(void),