diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:49:53 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:49:53 +0000 |
commit | 12bd47efc0f50d673c10528ed601eaf8b54f182b (patch) | |
tree | d775bb30121bac016ab20aa95e4b3d40ba205a0a /c/src/lib/libbsp/sh/simsh4/clock/ckinit.c | |
parent | 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-12bd47efc0f50d673c10528ed601eaf8b54f182b.tar.bz2 |
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/ckinit.c, include/bsp.h, startup/bspstart.c: Eliminate copies
of the Configuration Table. Use the RTEMS provided accessor macros to
obtain configuration fields.
Diffstat (limited to 'c/src/lib/libbsp/sh/simsh4/clock/ckinit.c')
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/clock/ckinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c b/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c index 69d22948df..4246e176a1 100644 --- a/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c +++ b/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c @@ -77,7 +77,7 @@ Clock_isr (rtems_vector_number vector) void Clock_exit(void) { - if (BSP_Configuration.ticks_per_timeslice) + if (rtems_configuration_get_ticks_per_timeslice()) { /* disable all timer1 interrupts */ set_clock_period(0); @@ -100,9 +100,9 @@ Install_clock(rtems_isr_entry clock_isr) uint32_t period; Clock_driver_ticks = 0; - if (BSP_Configuration.ticks_per_timeslice) { + if (rtems_configuration_get_ticks_per_timeslice()) { rtems_isr_entry old_isr; - period = bsp_clicks_per_second / BSP_Configuration.ticks_per_timeslice; + period = bsp_clicks_per_second / rtems_configuration_get_ticks_per_timeslice(); /* Configure timer interrupts */ set_clock_period(period); |