From b3ed33d04aec20568b8bb9616349e6d7e4c71882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 29 Jun 2009 14:29:14 +0000 Subject: Move SH7034 timer code in the target tree Add an argument int_prio to TIMER_START() macro because SH7034 needs it Leaves a target specific code in timer_register (could be given to target code through timer_set and __timer_set() ) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21556 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/timer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/timer.h b/firmware/export/timer.h index b758f57..f3faf09 100644 --- a/firmware/export/timer.h +++ b/firmware/export/timer.h @@ -31,11 +31,13 @@ #elif CONFIG_CPU == S3C2440 || CONFIG_CPU == DM320 || CONFIG_CPU == TCC7801 \ || defined(CPU_TCC77X) || CONFIG_CPU == AS3525 || CONFIG_CPU == IMX31L \ || CONFIG_CPU == JZ4732 || CONFIG_CPU == PNX0101 \ - || defined(CPU_COLDFIRE) + || defined(CPU_COLDFIRE) || CONFIG_CPU == SH7034 #include "timer-target.h" #elif defined(SIMULATOR) #define TIMER_FREQ 1000000 -#else +#endif + +#ifndef TIMER_FREQ #define TIMER_FREQ CPU_FREQ #endif bool timer_register(int reg_prio, void (*unregister_callback)(void), -- cgit v1.1