summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-06-29 14:29:57 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-06-29 14:29:57 +0000
commitc5dedd7d762f48e940ecc0bd17dd2173d59a92e1 (patch)
treecd4d9dc085b4c40f281f17953a3e126dd1c0c02b /firmware/export
parent89ccd5c145e45ad541a02f38e2ad07fb916f7135 (diff)
downloadrockbox-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.h6
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
43bool timer_register(int reg_prio, void (*unregister_callback)(void), 44bool 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
50void timer_unregister(void); 51void timer_unregister(void);
51 52
53/* target-specific interface */
54bool timer_set(long cycles, bool start);
55bool timer_start(IF_COP_VOID(int core));
56void timer_stop(void);
57
52/* For target-specific interface use */ 58/* For target-specific interface use */
53extern void (*pfn_timer)(void); 59extern void (*pfn_timer)(void);
54extern void (*pfn_unregister)(void); 60extern void (*pfn_unregister)(void);