From c5dedd7d762f48e940ecc0bd17dd2173d59a92e1 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Mon, 29 Jun 2009 14:29:57 +0000 Subject: 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 --- firmware/export/timer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/export') 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 @@ #warning "TIMER_FREQ not defined" #define TIMER_FREQ CPU_FREQ #endif + bool timer_register(int reg_prio, void (*unregister_callback)(void), long cycles, void (*timer_callback)(void) IF_COP(,int core)); @@ -49,6 +50,11 @@ void timers_adjust_prescale(int multiplier, bool enable_irq); #endif void timer_unregister(void); +/* target-specific interface */ +bool timer_set(long cycles, bool start); +bool timer_start(IF_COP_VOID(int core)); +void timer_stop(void); + /* For target-specific interface use */ extern void (*pfn_timer)(void); extern void (*pfn_unregister)(void); -- cgit v1.2.3