Changeset 2a1ca73 in rtems


Ignore:
Timestamp:
Sep 25, 2000, 7:06:25 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5ff9c088
Parents:
cd872d9
Message:

2000-09-25 Joel Sherrill <joel@…>

  • clock/ckinit.c: Removed include of <bsp.h>. Also switch to macros to get configuration data.
  • timer/timer.c: Removed include of <bsp.h>. Fixed comment that said 4650 (a mips part).
Location:
c/src/lib/libcpu/a29k
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/a29k/ChangeLog

    rcd872d9 r2a1ca73  
     12000-09-25      Joel Sherrill <joel@OARcorp.com>
     2
     3        * clock/ckinit.c: Removed include of <bsp.h>.  Also switch to
     4        macros to get configuration data.
     5        * timer/timer.c: Removed include of <bsp.h>.  Fixed comment
     6        that said 4650 (a mips part).
     7
    182000-09-22      Joel Sherrill <joel@OARcorp.com>
    29
  • c/src/lib/libcpu/a29k/clock/ckinit.c

    rcd872d9 r2a1ca73  
    2222#include <rtems.h>
    2323#include <rtems/libio.h>
    24 #include <bsp.h>
     24/* #include <bsp.h> */
    2525
    2626#include "clock.h"
     27
     28extern int CPU_CLOCK_RATE_MHZ; /* provided in bsp */
    2729
    2830#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ ) /* equivalent to CPU clock speed in MHz */
     
    124126   */
    125127
    126   if ( BSP_Configuration.ticks_per_timeslice ) {
     128  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    127129    Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    128130    /*
     
    130132     */
    131133
    132     a29k_timer_rate = BSP_Configuration.microseconds_per_tick * CLOCKS_PER_MICROSECOND;
     134    a29k_timer_rate = rtems_configuration_get_microseconds_per_tick() * CLOCKS_PER_MICROSECOND;
    133135    a29k_init_timer( a29k_timer_rate );
    134136  }
     
    147149void Clock_exit( void )
    148150{
    149   if ( BSP_Configuration.ticks_per_timeslice ) {
     151  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    150152
    151153    /* a29k: turn off the timer interrupts */
  • c/src/lib/libcpu/a29k/timer/timer.c

    rcd872d9 r2a1ca73  
    2525
    2626#include <rtems.h>
    27 #include <bsp.h>
     27/* #include <bsp.h> */
    2828
    2929#define CLOCKS_PER_MICROSECOND ( CPU_CLOCK_RATE_MHZ )
     
    4646   */
    4747
    48   /* Timer on 4650 is always running */
     48  /* Timer is always running */
    4949}
    5050
Note: See TracChangeset for help on using the changeset viewer.