Ignore:
Timestamp:
Aug 30, 2011, 1:16:35 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
c1188b41
Parents:
839dc97e
Message:

2011-08-30 Sebastian Huber <sebastian.huber@…>

  • libchip/network/smc91111exp.h, libchip/network/smc91111.c: Use BSP_FEATURE_IRQ_EXTENSION define.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/smc91111.c

    r839dc97e rb907a78b  
    6060#include <libchip/smc91111.h>
    6161
    62 #ifdef _OLD_EXCEPTIONS
    63 #if defined(__m68k__)
    64 extern m68k_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
     62#ifdef BSP_FEATURE_IRQ_EXTENSION
     63  #include <rtems/irq-extension.h>
    6564#else
    66 extern rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
    67 #endif
    68 #else
    69 #include <rtems/irq-extension.h>
     65  #if defined(__m68k__)
     66    extern m68k_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
     67  #else
     68    extern rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int );
     69  #endif
    7070#endif
    7171
     
    10731073
    10741074        /* install interrupt vector */
    1075 #ifdef _OLD_EXCEPTIONS
     1075#ifdef BSP_FEATURE_IRQ_EXTENSION
     1076        {
     1077                rtems_status_code sc = RTEMS_SUCCESSFUL;
     1078
     1079                sc = rtems_interrupt_handler_install(
     1080                        cpd->config.vector,
     1081                        cpd->config.info,
     1082                        cpd->config.options,
     1083                        cpd->config.interrupt_wrapper,
     1084                        cpd->config.arg
     1085                );
     1086                if (sc != RTEMS_SUCCESSFUL) {
     1087                        printf("rtems_interrupt_handler_install returned %d.\n", sc);
     1088                        return 0;
     1089                }
     1090        }
     1091#else
    10761092        db_printf("Install lan91cxx irqvector at %d\n", cpd->config.vector);
    10771093        set_vector(lan91cxx_interrupt_handler, cpd->config.vector, 1);
    1078 #else
    1079     {
    1080         int r;
    1081         if ((r = rtems_interrupt_handler_install(cpd->config.vector,
    1082         cpd->config.info,
    1083         cpd->config.options,
    1084         cpd->config.interrupt_wrapper,
    1085         cpd->config.arg) )) {
    1086                 printf("rtems_interrupt_handler_install returned %d.\n", r);
    1087                 return 0;
    1088         }
    1089     }
    10901094#endif
    10911095
Note: See TracChangeset for help on using the changeset viewer.