diff options
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 63f0567165..e9c652da73 100644 --- a/firmware/export/timer.h +++ b/firmware/export/timer.h | |||
@@ -23,8 +23,6 @@ | |||
23 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | #include "config.h" | 24 | #include "config.h" |
25 | 25 | ||
26 | #ifndef SIMULATOR | ||
27 | |||
28 | #if defined(CPU_PP) | 26 | #if defined(CPU_PP) |
29 | /* Portalplayer chips use a microsecond timer. */ | 27 | /* Portalplayer chips use a microsecond timer. */ |
30 | #define TIMER_FREQ 1000000 | 28 | #define TIMER_FREQ 1000000 |
@@ -35,10 +33,11 @@ | |||
35 | #define TIMER_FREQ 3000000 | 33 | #define TIMER_FREQ 3000000 |
36 | #elif CONFIG_CPU == S3C2440 | 34 | #elif CONFIG_CPU == S3C2440 |
37 | #include "timer-target.h" | 35 | #include "timer-target.h" |
36 | #elif SIMULATOR | ||
37 | #define TIMER_FREQ 1000000 | ||
38 | #else | 38 | #else |
39 | #define TIMER_FREQ CPU_FREQ | 39 | #define TIMER_FREQ CPU_FREQ |
40 | #endif | 40 | #endif |
41 | |||
42 | bool timer_register(int reg_prio, void (*unregister_callback)(void), | 41 | bool timer_register(int reg_prio, void (*unregister_callback)(void), |
43 | long cycles, int int_prio, void (*timer_callback)(void)); | 42 | long cycles, int int_prio, void (*timer_callback)(void)); |
44 | bool timer_set_period(long cycles); | 43 | bool timer_set_period(long cycles); |
@@ -51,5 +50,4 @@ void timer_unregister(void); | |||
51 | extern void (*pfn_timer)(void); | 50 | extern void (*pfn_timer)(void); |
52 | extern void (*pfn_unregister)(void); | 51 | extern void (*pfn_unregister)(void); |
53 | 52 | ||
54 | #endif /* !SIMULATOR */ | ||
55 | #endif /* __TIMER_H__ */ | 53 | #endif /* __TIMER_H__ */ |