Changeset abb52ce in rtems


Ignore:
Timestamp:
Apr 19, 2012, 6:16:20 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
1a3cbfba
Parents:
bb9cf58d
Message:

pxa255 shared: Clock driver clean up and ISR Handler Prototype Correction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/pxa255/clock/clock.c

    rbb9cf58d rabb52ce  
    88 *  found in the file LICENSE in this distribution or at
    99 *  http://www.rtems.com/license/LICENSE.
    10  *
    11  *  $Id$
    1210 */
    1311
     
    7270  /* disable timer interrupt*/
    7371  XSCALE_OS_TIMER_IER &= ~0x1;
    74   return;
    7572}
    7673
     
    8380static int clock_isr_is_on(const rtems_irq_connect_data *irq)
    8481{
    85     /* check timer interrupt */
     82  /* check timer interrupt */
    8683  return XSCALE_OS_TIMER_IER & 0x1;
    8784}
    8885
    89 rtems_isr Clock_isr(rtems_vector_number vector);
     86void Clock_isr(rtems_irq_hdl_param arg);
    9087
    91 /* Replace the first value with the clock's interrupt name. */
    9288rtems_irq_connect_data clock_isr_data = {
    93   XSCALE_IRQ_OS_TIMER,
    94   (rtems_irq_hdl)Clock_isr,
    95   NULL,
    96   clock_isr_on,
    97   clock_isr_off,
    98   clock_isr_is_on
     89  .name   = XSCALE_IRQ_OS_TIMER,
     90  .hdl    = Clock_isr,
     91  .handle = NULL,
     92  .on     = clock_isr_on,
     93  .off    = clock_isr_off,
     94  .isOn   = clock_isr_is_on,
    9995};
    100 
    10196
    10297#define Clock_driver_support_install_isr( _new, _old ) \
     
    115110}
    116111
    117 
    118 #define CLOCK_VECTOR 0
    119 
    120112#define Clock_driver_support_at_tick() \
    121113  do { \
Note: See TracChangeset for help on using the changeset viewer.