Changeset 6083017 in rtems


Ignore:
Timestamp:
Nov 23, 2009, 8:11:57 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
6e701e2
Parents:
e5962ef5
Message:

2009-11-23 Joel Sherrill <joel.sherrill@…>

  • clockdrv_shell.h: Clean up.
Location:
c/src/lib/libbsp/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    re5962ef5 r6083017  
     12009-11-23      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * clockdrv_shell.h: Clean up.
     4
    152009-10-21      Sebastian Huber <sebastian.huber@embedded-brains.de>
    26
  • c/src/lib/libbsp/shared/clockdrv_shell.h

    re5962ef5 r6083017  
    22 *  Clock Tick Device Driver Shell
    33 *
    4  *  COPYRIGHT (c) 1989-2006.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    3737 *  Clock ticks since initialization
    3838 */
    39 volatile uint32_t         Clock_driver_ticks;
    40 
    41 /*
    42  *  ISR formerly installed.
    43  */
    44 rtems_isr_entry  Old_ticker;
     39volatile uint32_t    Clock_driver_ticks;
    4540
    4641void Clock_exit( void );
     
    10398
    10499/*
    105  *  Install_clock
    106  *
    107  *  This routine actually performs the hardware initialization for the clock.
    108  *
    109  *  Input parameters:
    110  *    clock_isr - clock interrupt service routine entry point
    111  *
    112  *  Output parameters:  NONE
    113  *
    114  *  Return values:      NONE
    115  *
    116  */
    117 
    118 static void Install_clock(
    119   rtems_isr_entry clock_isr
    120 )
    121 {
    122   Clock_driver_ticks = 0;
    123 
    124   /*
    125    *  Find timer -- some BSPs search buses for hardware timer
    126    */
    127   Clock_driver_support_find_timer();
    128 
    129   /*
    130    *  Install vector
    131    */
    132   Clock_driver_support_install_isr( clock_isr, Old_ticker );
    133 
    134   #if defined(Clock_driver_nanoseconds_since_last_tick)
    135     rtems_clock_set_nanoseconds_extension(
    136       Clock_driver_nanoseconds_since_last_tick
    137     );
    138   #endif
    139 
    140   /*
    141    *  Now initialize the hardware that is the source of the tick ISR.
    142    */
    143   Clock_driver_support_initialize_hardware();
    144 
    145   atexit( Clock_exit );
    146 }
    147 
    148 /*
    149100 *  Clock_exit
    150101 *
     
    189140)
    190141{
    191   Install_clock( Clock_isr );
     142  rtems_isr_entry  Old_ticker;
     143
     144  Clock_driver_ticks = 0;
     145
     146  /*
     147   *  Find timer -- some BSPs search buses for hardware timer
     148   */
     149  Clock_driver_support_find_timer();
     150
     151  /*
     152   *  Install vector
     153   */
     154  Clock_driver_support_install_isr( Clock_isr, Old_ticker );
     155
     156  #if defined(Clock_driver_nanoseconds_since_last_tick)
     157    rtems_clock_set_nanoseconds_extension(
     158      Clock_driver_nanoseconds_since_last_tick
     159    );
     160  #endif
     161
     162  /*
     163   *  Now initialize the hardware that is the source of the tick ISR.
     164   */
     165  Clock_driver_support_initialize_hardware();
     166
     167  atexit( Clock_exit );
    192168
    193169  /*
Note: See TracChangeset for help on using the changeset viewer.