Changeset 3dc9d80f in rtems


Ignore:
Timestamp:
10/12/14 20:37:33 (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
4172cf1b
Parents:
b6c3e3e
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/sh7032/clock/ckinit.c: Fix warnings

File:
1 edited

Legend:

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

    rb6c3e3e r3dc9d80f  
    11/*
    22 *  This file contains the clock driver the Hitachi SH 703X
    3  *
     3 */
     4
     5/*
    46 *  Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and
    57 *           Bernd Becker (becker@faw.uni-ulm.de)
     
    1113 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    1214 *
    13  *
    1415 *  COPYRIGHT (c) 1998.
    1516 *  On-Line Applications Research Corporation (OAR).
     
    2425#include <stdlib.h>
    2526
    26 #include <rtems/libio.h>
     27#include <rtems/clockdrv.h>
    2728#include <rtems/score/sh_io.h>
    2829#include <rtems/score/sh.h>
     
    123124volatile uint32_t   Clock_driver_ticks;
    124125
    125 static void Clock_exit( void );
     126void Clock_exit( void );
    126127static rtems_isr Clock_isr( rtems_vector_number vector );
    127128
     
    138139
    139140/*
    140  * These are set by clock driver during its init
    141  */
    142 
    143 rtems_device_major_number rtems_clock_major = ~0;
    144 rtems_device_minor_number rtems_clock_minor;
    145 
    146 /*
    147141 *  The previous ISR on this clock tick interrupt vector.
    148142 */
    149 
    150143rtems_isr_entry  Old_ticker;
    151144
     
    153146 *  Isr Handler
    154147 */
    155 
    156 rtems_isr Clock_isr(
     148static rtems_isr Clock_isr(
    157149  rtems_vector_number vector
    158150)
     
    191183 *  is used to initially establish the clock tick.
    192184 */
    193 
    194 void Install_clock(
     185static void Install_clock(
    195186  rtems_isr_entry clock_isr
    196187)
     
    277268 *  Clean up before the application exits
    278269 */
    279 
    280270void Clock_exit( void )
    281271{
     
    313303  Install_clock( Clock_isr );
    314304
    315   /*
    316    * make major/minor avail to others such as shared memory driver
    317    */
    318 
    319   rtems_clock_major = major;
    320   rtems_clock_minor = minor;
    321 
    322305  return RTEMS_SUCCESSFUL;
    323306}
Note: See TracChangeset for help on using the changeset viewer.