Changeset 45666bc7 in rtems


Ignore:
Timestamp:
10/12/14 19:09:12 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
5fdb72a0
Parents:
12966a0b
git-author:
Joel Sherrill <joel.sherrill@…> (10/12/14 19:09:12)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:31)
Message:

m68k/mrm332/clock/ckinit.c: Remove clock major/minor and clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mrm332/clock/ckinit.c

    r12966a0b r45666bc7  
    1 /*  Clock_init()
    2  *
     1/*
    32 *  This routine initailizes the periodic interrupt timer on
    43 *  the Motorola 68332.
    5  *
    6  *  Input parameters:  NONE
    7  *
    8  *  Output parameters:  NONE
    9  *
    10  *  COPYRIGHT (c) 1989-1999.
     4 */
     5
     6/*
     7 *  COPYRIGHT (c) 1989-2014.
    118 *  On-Line Applications Research Corporation (OAR).
    129 *
     
    2219#define CLOCK_VECTOR   MRM_PIV
    2320
    24 uint32_t         Clock_isrs;        /* ISRs until next tick */
    25 volatile uint32_t         Clock_driver_ticks;
    26                                     /* ticks since initialization */
    27 rtems_isr_entry  Old_ticker;
     21uint32_t                Clock_isrs;         /* ISRs until next tick */
     22volatile uint32_t       Clock_driver_ticks; /* ticks since initialization */
     23static rtems_isr_entry  Old_ticker;
    2824
    2925void Clock_exit( void );
    3026
    31 /*
    32  * These are set by clock driver during its init
    33  */
    34 
    35 rtems_device_major_number rtems_clock_major = ~0;
    36 rtems_device_minor_number rtems_clock_minor;
    37 
    38 rtems_isr Clock_isr(rtems_vector_number vector);
    39 void Install_clock(rtems_isr_entry clock_isr);
    40 
    41 rtems_isr Clock_isr(rtems_vector_number vector)
     27static rtems_isr Clock_isr(rtems_vector_number vector)
    4228{
    4329  Clock_driver_ticks += 1;
     
    5137}
    5238
    53 void Install_clock(rtems_isr_entry clock_isr)
     39static void Install_clock(rtems_isr_entry clock_isr)
    5440{
    5541  Clock_driver_ticks = 0;
     
    8470  Install_clock( Clock_isr );
    8571
    86   /*
    87    * make major/minor avail to others such as shared memory driver
    88    */
    89 
    90   rtems_clock_major = major;
    91   rtems_clock_minor = minor;
    92 
    9372  return RTEMS_SUCCESSFUL;
    9473}
Note: See TracChangeset for help on using the changeset viewer.