Changeset 1a3cbfba in rtems


Ignore:
Timestamp:
Apr 19, 2012, 6:16:33 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
64c44c1
Parents:
abb52ce
Message:

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

File:
1 edited

Legend:

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

    rabb52ce r1a3cbfba  
    77 *  The license and distribution terms for this file may be
    88 *  found in the file LICENSE in this distribution or at
    9  *
    109 *  http://www.rtems.com/license/LICENSE.
    11  *
    12  *
    13  *  $Id$
    14 */
     10 */
     11
    1512#include <rtems.h>
    1613#include <bsp/irq.h>
     
    1815#include <s3c24xx.h>
    1916
    20 /* this is defined in ../../../shared/clockdrv_shell.h */
    21 rtems_isr Clock_isr(rtems_vector_number vector);
     17void Clock_isr(rtems_irq_hdl_param arg);
    2218static void clock_isr_on(const rtems_irq_connect_data *unused);
    2319static void clock_isr_off(const rtems_irq_connect_data *unused);
    2420static int clock_isr_is_on(const rtems_irq_connect_data *irq);
    2521
    26 /* Replace the first value with the clock's interrupt name. */
    27 rtems_irq_connect_data clock_isr_data = {BSP_INT_TIMER4,
    28                                          (rtems_irq_hdl)Clock_isr,
    29                                         NULL,
    30                                         clock_isr_on,
    31                                         clock_isr_off,
    32                                          clock_isr_is_on
     22rtems_irq_connect_data clock_isr_data = {
     23  .name   = BSP_INT_TIMER4,
     24  .hdl    = Clock_isr,
     25  .handle = NULL,
     26  .on     = clock_isr_on,
     27  .off    = clock_isr_off,
     28  .isOn   = clock_isr_is_on,
    3329};
    34 
    35 /* If you follow the code, this is never used, so any value
    36  * should work
    37  */
    38 #define CLOCK_VECTOR 0
    3930
    4031/**
     
    5647#define Clock_driver_support_at_tick()                \
    5748  do {                                                \
    58         ClearPending(BIT_TIMER4);                                 \
     49        ClearPending(BIT_TIMER4);                     \
    5950  } while(0)
    6051
     
    119110static void clock_isr_on(const rtems_irq_connect_data *unused)
    120111{
    121     return;
    122112}
    123113
     
    140130static int clock_isr_is_on(const rtems_irq_connect_data *irq)
    141131{
    142     return 1;
    143132}
    144 
    145133
    146134/* Make sure to include this, and only at the end of the file */
Note: See TracChangeset for help on using the changeset viewer.