Changeset 8c0cab0 in rtems for c/src/libchip


Ignore:
Timestamp:
Sep 23, 2008, 2:07:19 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
8a6c480
Parents:
d126b320
Message:

2008-09-23 Sebastian Huber <sebastian.huber@…>

  • libchip/serial/ns16550.c: Enable interrupt code only for PowerPC or BSPs that support this feature.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/serial/ns16550.c

    rd126b320 r8c0cab0  
    3131#include <libchip/sersupp.h>
    3232
     33#include <bsp.h>
     34
    3335#include "ns16550_p.h"
    3436
    35 #if !defined(CPU_SIMPLE_VECTORED_INTERRUPTS) && !defined(__arm__)
     37#ifdef BSP_FEATURE_IRQ_EXTENSION
    3638  #include <bsp/irq.h>
    37   #define NS16550_SUPPORTED
    38 #endif
    39 
    40 #ifdef BSP_FEATURE_IRQ_EXTENSION
    41   /* Nothing to do */
    4239#elif defined BSP_FEATURE_IRQ_LEGACY
    43   /* Nothing to do */
     40  #include <bsp/irq.h>
    4441#elif defined __PPC__
     42  #include <bsp/irq.h>
    4543  #define BSP_FEATURE_IRQ_LEGACY
    4644  #ifdef BSP_SHARED_HANDLER_SUPPORT
    4745    #define BSP_FEATURE_IRQ_LEGACY_SHARED_HANDLER_SUPPORT
    4846  #endif
    49 #else
    50   #undef NS16650_SUPPORTED
    5147#endif
    52 
    53 #if defined(NS16550_SUPPORTED)
    5448
    5549/*
     
    725719  }
    726720}
    727 #endif /* defined(NS16550_SUPPORTED) */
Note: See TracChangeset for help on using the changeset viewer.