Changeset 4172cf1b in rtems


Ignore:
Timestamp:
10/12/14 20:37:33 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
9fab016
Parents:
3dc9d80f
git-author:
Joel Sherrill <joel.sherrill@…> (10/12/14 20:37:33)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/13/14 15:33:33)
Message:

libcpu/sh/sh7045/clock/ckinit.c: Fix warnings

File:
1 edited

Legend:

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

    r3dc9d80f r4172cf1b  
    11/*
    22 *  This file contains the clock driver the Hitachi SH 704X
    3  *
     3 */
     4
     5/*
    46 *  Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
    57 *           Bernd Becker (becker@faw.uni-ulm.de)
     
    1012 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    1113 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    12  *
    1314 *
    1415 *  COPYRIGHT (c) 1998.
     
    3637#include <stdlib.h>
    3738
    38 #include <rtems/libio.h>
     39#include <rtems/clockdrv.h>
    3940#include <rtems/score/sh_io.h>
    4041#include <rtems/score/sh.h>
     
    7172 *  number of clock ticks since the driver was initialized.
    7273 */
    73 
    7474volatile uint32_t   Clock_driver_ticks;
    7575
    76 static void Clock_exit( void );
    7776static rtems_isr Clock_isr( rtems_vector_number vector );
    7877static uint32_t   Clock_MHZ ;
     
    8584 *  has passed.
    8685 */
    87 
    8886uint32_t   Clock_isrs;              /* ISRs until next tick */
    8987static uint32_t   Clock_isrs_const;        /* only calculated once */
    9088
    9189/*
    92  * These are set by clock driver during its init
    93  */
    94 
    95 rtems_device_major_number rtems_clock_major = ~0;
    96 rtems_device_minor_number rtems_clock_minor;
    97 
    98 /*
    9990 *  The previous ISR on this clock tick interrupt vector.
    10091 */
    101 
    10292rtems_isr_entry  Old_ticker;
    10393
     
    10595 *  Isr Handler
    10696 */
    107 
    108 rtems_isr Clock_isr(
     97static rtems_isr Clock_isr(
    10998  rtems_vector_number vector
    11099)
     
    144133 *  is used to initially establish the clock tick.
    145134 */
    146 
    147 void Install_clock(
     135static void Install_clock(
    148136  rtems_isr_entry clock_isr
    149137)
     
    151139  uint8_t   temp8 = 0;
    152140  uint32_t   factor = 1000000;
    153 
    154141
    155142  /*
     
    213200   *  Schedule the clock cleanup routine to execute if the application exits.
    214201   */
    215 
    216202  atexit( Clock_exit );
    217203}
     
    220206 *  Clean up before the application exits
    221207 */
    222 
    223208void Clock_exit( void )
    224209{
     
    247232 *  Device driver entry point for clock tick driver initialization.
    248233 */
    249 
    250234rtems_device_driver Clock_initialize(
    251235  rtems_device_major_number major,
     
    256240  Install_clock( Clock_isr );
    257241
    258   /*
    259    * make major/minor avail to others such as shared memory driver
    260    */
    261 
    262   rtems_clock_major = major;
    263   rtems_clock_minor = minor;
    264 
    265242  return RTEMS_SUCCESSFUL;
    266243}
Note: See TracChangeset for help on using the changeset viewer.