Changeset 5fdb72a0 in rtems


Ignore:
Timestamp:
Oct 12, 2014, 7:09:37 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
5ad38eac
Parents:
45666bc7
git-author:
Joel Sherrill <joel.sherrill@…> (10/12/14 19:09:37)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:31)
Message:

no_cpu/no_bsp/clock/ckinit.c: Remove clock major/minor and clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c

    r45666bc7 r5fdb72a0  
    1 /*  ckinit.c
    2  *
     1/*
    32 *  This file provides a template for the clock device driver initialization.
    43 *
    5  *  COPYRIGHT (c) 1989-1999.
     4 *  If possible, please use the clockdrv_shell.h method for instantiating
     5 *  a clock driver.
     6 */
     7
     8/*
     9 *  COPYRIGHT (c) 1989-2014.
    610 *  On-Line Applications Research Corporation (OAR).
    711 *
     
    2327 *  driver.
    2428 */
    25 
    2629#define CLOCK_VECTOR    4
    2730
     
    3033 *  number of clock ticks since the driver was initialized.
    3134 */
    32 
    3335volatile uint32_t         Clock_driver_ticks;
    3436
     
    4042 *  has passed.
    4143 */
    42 
    4344uint32_t         Clock_isrs;              /* ISRs until next tick */
    44 
    45 /*
    46  * These are set by clock driver during its init
    47  */
    48 
    49 rtems_device_major_number rtems_clock_major = ~0;
    50 rtems_device_minor_number rtems_clock_minor;
    5145
    5246/*
    5347 *  The previous ISR on this clock tick interrupt vector.
    5448 */
    55 
    5649rtems_isr_entry  Old_ticker;
    5750
     
    6154 *  Isr Handler
    6255 */
    63 
    64 rtems_isr Clock_isr(
     56static rtems_isr Clock_isr(
    6557  rtems_vector_number vector
    6658)
    6759{
    68 /*
    69  * bump the number of clock driver ticks since initialization
    70  *
    71  * determine if it is time to announce the passing of tick as configured
    72  * to RTEMS through the rtems_clock_tick directive
    73  *
    74  * perform any timer dependent tasks
    75  */
     60  /*
     61   * bump the number of clock driver ticks since initialization
     62   *
     63   * determine if it is time to announce the passing of tick as configured
     64   * to RTEMS through the rtems_clock_tick directive
     65   *
     66   * perform any timer dependent tasks
     67   */
    7668}
    7769
     
    8274 *  is used to initially establish the clock tick.
    8375 */
    84 
    8576void Install_clock(
    8677  rtems_isr_entry clock_isr
     
    124115 *  Device driver entry point for clock tick driver initialization.
    125116 */
    126 
    127117rtems_device_driver Clock_initialize(
    128118  rtems_device_major_number major,
     
    133123  Install_clock( Clock_isr );
    134124
    135   /*
    136    * make major/minor avail to others such as shared memory driver
    137    */
    138 
    139   rtems_clock_major = major;
    140   rtems_clock_minor = minor;
    141 
    142125  return RTEMS_SUCCESSFUL;
    143126}
Note: See TracChangeset for help on using the changeset viewer.