Ignore:
Timestamp:
Oct 13, 2014, 3:28:44 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
fb252a68
Parents:
2faaf4b
Message:

powerpc/ep1a: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/ep1a/irq/irq_init.c

    r2faaf4b r7a4c4f4  
    22 *  This file contains the implementation of rtems initialization
    33 *  related to interrupt handling.
    4  *
     4 */
     5
     6/*
    57 *  CopyRight (C) 1999 valette@crf.canon.fr
    68 *
     
    3537#define TRACE_IRQ_INIT
    3638
    37 /*
    38  * default on/off function
    39  */
    40 static void nop_func(void){}
    41 /*
    42  * default isOn function
    43  */
    44 static int not_connected(void) {return 0;}
    45 /*
    46  * default possible isOn function
    47  */
    48 static int connected(void) {return 1;}
     39static void IRQ_Default_rtems_irq_hdl(
     40  rtems_irq_hdl_param ptr
     41)
     42{
     43}
     44
     45static void IRQ_Default_rtems_irq_enable(
     46  const struct __rtems_irq_connect_data__ *ptr
     47)
     48{
     49}
     50
     51static void IRQ_Default_rtems_irq_disable(
     52  const struct __rtems_irq_connect_data__ *ptr
     53)
     54{
     55}
     56
     57static int  IRQ_Default_rtems_irq_is_enabled(
     58  const struct __rtems_irq_connect_data__ *ptr)
     59{
     60  return 1;
     61}
    4962
    5063static rtems_irq_connect_data           rtemsIrq[BSP_IRQ_NUMBER];
    5164static rtems_irq_global_settings        initial_config;
    52 static rtems_irq_connect_data           defaultIrq = {
    53   /* vectorIdex,         hdl            , handle        , on            , off           , isOn */
    54   0,                     nop_func       , NULL          , nop_func      , nop_func      , not_connected
    55 };
     65
     66static rtems_irq_connect_data defaultIrq = {
     67  .name   = 0,
     68  .hdl    = IRQ_Default_rtems_irq_hdl,
     69  .handle = NULL,
     70  .on     = IRQ_Default_rtems_irq_enable,
     71  .on     = IRQ_Default_rtems_irq_disable,
     72  .isOn   = IRQ_Default_rtems_irq_is_enabled
     73};
     74
    5675static rtems_irq_prio irqPrioTable[BSP_IRQ_NUMBER]={
    5776  /*
Note: See TracChangeset for help on using the changeset viewer.