Changeset f817b02 in rtems for c/src/lib/libcpu/sh/sh7032/clock


Ignore:
Timestamp:
11/04/99 18:05:09 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
707f5c7
Parents:
d5704c6
Message:

The files in libcpu should not be directly dependent on any BSP. In
particular, using bsp.h, or getting information from the BSP which
should properly be obtained from RTEMS is forbidden. This is
necessary to strengthen the division between the BSP independent
parts of RTEMS and the BSPs themselves. This started after
comments and analysis by Ralf Corsepius <corsepiu@…>.
The changes primarily eliminated the need to include bsp.h and
peeking at BSP_Configuration. The use of Cpu_table in each
BSP needs to be eliminated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/sh7032/clock/ckinit.c

    rd5704c6 rf817b02  
    2323 */
    2424
    25 #include <bsp.h>
     25#include <rtems.h>
    2626
    2727#include <stdlib.h>
     
    144144
    145145  Clock_driver_ticks = 0;
    146   Clock_isrs_const = BSP_Configuration.microseconds_per_tick / 10000;
     146  Clock_isrs_const = rtems_configuration_get_microseconds_per_tick() / 10000;
    147147  Clock_isrs = Clock_isrs_const;
    148148
     
    152152   */
    153153
    154   if ( BSP_Configuration.ticks_per_timeslice ) {
     154  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    155155    rtems_interrupt_catch( Clock_isr, CLOCK_VECTOR, &Old_ticker );
    156156    /*
     
    192192
    193193    /* set counter limits */
    194     write16( _ITU_COUNTER0_MICROSECOND * BSP_Configuration.microseconds_per_tick,
     194    write16( _ITU_COUNTER0_MICROSECOND * rtems_configuration_get_microseconds_per_tick(),
    195195             ITU_GRA0);
    196196   
     
    215215{
    216216  unsigned8 temp8 = 0;
    217   if ( BSP_Configuration.ticks_per_timeslice ) {
     217  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    218218
    219219    /* turn off the timer interrupts */
Note: See TracChangeset for help on using the changeset viewer.