From 99f67930c27d2dcc757b90aa9f3c15639456dde2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 26 Nov 2007 23:02:03 +0000 Subject: 2007-11-26 Joel Sherrill * sh7032/clock/ckinit.c, sh7032/delay/delay.c, sh7032/timer/timer.c, sh7045/clock/ckinit.c, sh7045/timer/timer.c, sh7750/clock/ckinit.c, sh7750/timer/timer.c: Eliminate the clicks_per_microsecond field in the SuperH CPU Table and define another mechanism for drivers to obtain this information. --- c/src/lib/libcpu/sh/sh7032/timer/timer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'c/src/lib/libcpu/sh/sh7032/timer') diff --git a/c/src/lib/libcpu/sh/sh7032/timer/timer.c b/c/src/lib/libcpu/sh/sh7032/timer/timer.c index 6b7a8ba335..3fb5151457 100644 --- a/c/src/lib/libcpu/sh/sh7032/timer/timer.c +++ b/c/src/lib/libcpu/sh/sh7032/timer/timer.c @@ -34,6 +34,8 @@ #include #include +extern uint32_t bsp_clicks_per_second; + #define I_CLK_PHI_1 0 #define I_CLK_PHI_2 1 #define I_CLK_PHI_4 2 @@ -77,7 +79,7 @@ void Timer_initialize( void ) rtems_interrupt_level level; rtems_isr *ignored; - Timer_HZ = rtems_cpu_configuration_get_clicks_per_second() / CLOCK_SCALE ; + Timer_HZ = bsp_clicks_per_second / CLOCK_SCALE ; /* * Timer has never overflowed. This may not be necessary on some -- cgit v1.2.3