diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/timer-target.h')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/timer-target.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/timer-target.h b/firmware/target/mips/ingenic_jz47xx/timer-target.h index 40942d4b4c..2e072440ab 100644 --- a/firmware/target/mips/ingenic_jz47xx/timer-target.h +++ b/firmware/target/mips/ingenic_jz47xx/timer-target.h | |||
@@ -27,17 +27,16 @@ | |||
27 | #define TIMER_FREQ (CFG_EXTAL) /* For full precision! */ | 27 | #define TIMER_FREQ (CFG_EXTAL) /* For full precision! */ |
28 | 28 | ||
29 | bool __timer_set(long cycles, bool set); | 29 | bool __timer_set(long cycles, bool set); |
30 | bool __timer_register(void); | 30 | bool __timer_start(void); |
31 | void __timer_unregister(void); | 31 | void __timer_stop(void); |
32 | 32 | ||
33 | #define __TIMER_SET(cycles, set) \ | 33 | #define __TIMER_SET(cycles, set) \ |
34 | __timer_set(cycles, set) | 34 | __timer_set(cycles, set) |
35 | 35 | ||
36 | #define __TIMER_REGISTER(reg_prio, unregister_callback, cycles, \ | 36 | #define __TIMER_START() \ |
37 | int_prio, timer_callback) \ | 37 | __timer_start() |
38 | __timer_register() | ||
39 | 38 | ||
40 | #define __TIMER_UNREGISTER(...) \ | 39 | #define __TIMER_STOP(...) \ |
41 | __timer_unregister() | 40 | __timer_stop() |
42 | 41 | ||
43 | #endif /* __TIMER_H_ */ | 42 | #endif /* __TIMER_H_ */ |