Changeset b6c3e3e in rtems


Ignore:
Timestamp:
Oct 12, 2014, 8:37:33 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
3dc9d80f
Parents:
da71123
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/powerpc/mpc5xx/clock/clock.c: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc5xx/clock/clock.c

    rda71123 rb6c3e3e  
    1 /* clock.c
     1/*
    22 *
    33 *  This routine initializes the PIT on the MPC5xx.
    44 *  The tick frequency is specified by the bsp.
    5  *
    6  *
     5 */
     6
     7/*
    78 *  MPC5xx port sponsored by Defence Research and Development Canada - Suffield
    89 *  Copyright (C) 2004, Real-Time Systems Inc. (querbach@realtime.bc.ca)
     
    5657
    5758/*
    58  * These are set by clock driver during its init
    59  */
    60 
    61 rtems_device_major_number rtems_clock_major = ~0;
    62 rtems_device_minor_number rtems_clock_minor;
    63 
    64 /*
    6559 *  ISR Handler
    6660 */
     
    108102}
    109103
    110 void
    111 clockOff(void* unused)
     104void clockOff(void* unused)
    112105{
    113106  /* disable PIT and PIT interrupts */
     
    128121 * Remove the clock interrupt handler by setting handler to NULL
    129122 */
    130 void
    131 Clock_exit(void)
     123void Clock_exit(void)
    132124{
    133125  (void) BSP_disconnect_clock_handler ();
    134126}
    135127
    136 void Install_clock(rtems_isr_entry clock_isr)
     128static void Install_clock(rtems_isr_entry clock_isr)
    137129{
    138130  Clock_driver_ticks = 0;
     
    141133  atexit(Clock_exit);
    142134}
    143 
    144 void
    145 ReInstall_clock(rtems_isr_entry new_clock_isr)
    146 {
    147   BSP_connect_clock_handler (new_clock_isr);
    148 }
    149 
    150135
    151136rtems_device_driver Clock_initialize(
     
    157142  Install_clock( Clock_isr );
    158143
    159   /*
    160    * make major/minor avail to others such as shared memory driver
    161    */
    162 
    163   rtems_clock_major = major;
    164   rtems_clock_minor = minor;
    165 
    166144  return RTEMS_SUCCESSFUL;
    167145}
Note: See TracChangeset for help on using the changeset viewer.