diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-06-29 14:29:57 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-06-29 14:29:57 +0000 |
commit | c5dedd7d762f48e940ecc0bd17dd2173d59a92e1 (patch) | |
tree | cd4d9dc085b4c40f281f17953a3e126dd1c0c02b /firmware/export | |
parent | 89ccd5c145e45ad541a02f38e2ad07fb916f7135 (diff) | |
download | rockbox-c5dedd7d762f48e940ecc0bd17dd2173d59a92e1.tar.gz rockbox-c5dedd7d762f48e940ecc0bd17dd2173d59a92e1.zip |
Remove the TIMER_* macros and declare target-specific functions in timer.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21559 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/timer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/timer.h b/firmware/export/timer.h index 7b56330e18..230c0ae4dc 100644 --- a/firmware/export/timer.h +++ b/firmware/export/timer.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #warning "TIMER_FREQ not defined" | 40 | #warning "TIMER_FREQ not defined" |
41 | #define TIMER_FREQ CPU_FREQ | 41 | #define TIMER_FREQ CPU_FREQ |
42 | #endif | 42 | #endif |
43 | |||
43 | bool timer_register(int reg_prio, void (*unregister_callback)(void), | 44 | bool timer_register(int reg_prio, void (*unregister_callback)(void), |
44 | long cycles, void (*timer_callback)(void) | 45 | long cycles, void (*timer_callback)(void) |
45 | IF_COP(,int core)); | 46 | IF_COP(,int core)); |
@@ -49,6 +50,11 @@ void timers_adjust_prescale(int multiplier, bool enable_irq); | |||
49 | #endif | 50 | #endif |
50 | void timer_unregister(void); | 51 | void timer_unregister(void); |
51 | 52 | ||
53 | /* target-specific interface */ | ||
54 | bool timer_set(long cycles, bool start); | ||
55 | bool timer_start(IF_COP_VOID(int core)); | ||
56 | void timer_stop(void); | ||
57 | |||
52 | /* For target-specific interface use */ | 58 | /* For target-specific interface use */ |
53 | extern void (*pfn_timer)(void); | 59 | extern void (*pfn_timer)(void); |
54 | extern void (*pfn_unregister)(void); | 60 | extern void (*pfn_unregister)(void); |