summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/tcc77x
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-06-29 14:28:56 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-06-29 14:28:56 +0000
commite0640c3c4b6d238e38155c863e542335ce57a425 (patch)
treeec0d956f861090a91021aee1d360e4a2c6449670 /firmware/target/arm/tcc77x
parent15e40dd3a6ac8e9df88b77c0dbd9a90870ad91e6 (diff)
downloadrockbox-e0640c3c4b6d238e38155c863e542335ce57a425.tar.gz
rockbox-e0640c3c4b6d238e38155c863e542335ce57a425.tar.bz2
rockbox-e0640c3c4b6d238e38155c863e542335ce57a425.zip
Rename TIMER_REGISTER macro to TIMER_START and TIMER_UNREGISTER to TIMER_STOP to reflect what they does exactly.
registering and unregistering are handled by the non target-specific functions of timer.c Remove arguments from the new TIMER_START since they are unused by targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21553 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc77x')
-rw-r--r--firmware/target/arm/tcc77x/timer-target.h13
-rw-r--r--firmware/target/arm/tcc77x/timer-tcc77x.c4
2 files changed, 8 insertions, 9 deletions
diff --git a/firmware/target/arm/tcc77x/timer-target.h b/firmware/target/arm/tcc77x/timer-target.h
index 991d949447..ace31ac886 100644
--- a/firmware/target/arm/tcc77x/timer-target.h
+++ b/firmware/target/arm/tcc77x/timer-target.h
@@ -25,17 +25,16 @@
#define TIMER_FREQ (12000000)
bool __timer_set(long cycles, bool set);
-bool __timer_register(void);
-void __timer_unregister(void);
+bool __timer_start(void);
+void __timer_stop(void);
#define __TIMER_SET(cycles, set) \
__timer_set(cycles, set)
-#define __TIMER_REGISTER(reg_prio, unregister_callback, cycles, \
- int_prio, timer_callback) \
- __timer_register()
+#define __TIMER_START() \
+ __timer_start()
-#define __TIMER_UNREGISTER(...) \
- __timer_unregister()
+#define __TIMER_STOP(...) \
+ __timer_stop()
#endif /* TIMER_TARGET_H */
diff --git a/firmware/target/arm/tcc77x/timer-tcc77x.c b/firmware/target/arm/tcc77x/timer-tcc77x.c
index 924ddda625..ddf44454c2 100644
--- a/firmware/target/arm/tcc77x/timer-tcc77x.c
+++ b/firmware/target/arm/tcc77x/timer-tcc77x.c
@@ -37,14 +37,14 @@ bool __timer_set(long cycles, bool start)
return false;
}
-bool __timer_register(void)
+bool __timer_start(void)
{
#warning function not implemented
return false;
}
-void __timer_unregister(void)
+void __timer_stop(void)
{
#warning function not implemented
}