diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-26 23:02:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-26 23:02:03 +0000 |
commit | 99f67930c27d2dcc757b90aa9f3c15639456dde2 (patch) | |
tree | 9ee200ba474c123fd54edc8d0b92e04f6bf59e84 /c/src/lib/libcpu/sh/sh7045/clock | |
parent | 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-99f67930c27d2dcc757b90aa9f3c15639456dde2.tar.bz2 |
2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'c/src/lib/libcpu/sh/sh7045/clock')
-rw-r--r-- | c/src/lib/libcpu/sh/sh7045/clock/ckinit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/sh/sh7045/clock/ckinit.c b/c/src/lib/libcpu/sh/sh7045/clock/ckinit.c index 76c08a690e..6a43c5fc54 100644 --- a/c/src/lib/libcpu/sh/sh7045/clock/ckinit.c +++ b/c/src/lib/libcpu/sh/sh7045/clock/ckinit.c @@ -43,6 +43,8 @@ #include <rtems/score/ispsh7045.h> #include <rtems/score/iosh7045.h> +extern uint32_t bsp_clicks_per_second; + #define _MTU_COUNTER0_MICROSECOND (Clock_MHZ/16) #ifndef CLOCKPRIO @@ -161,7 +163,7 @@ void Install_clock( Clock_isrs = Clock_isrs_const; factor /= rtems_configuration_get_microseconds_per_tick(); /* minimalization of integer division error */ - Clock_MHZ = rtems_cpu_configuration_get_clicks_per_second() / factor ; + Clock_MHZ = bsp_clicks_per_second / factor ; rtems_interrupt_catch( Clock_isr, CLOCK_VECTOR, &Old_ticker ); |