diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-07 14:34:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-07 14:34:18 +0000 |
commit | 13279f5dcfec1e9efedaa01a8c53e510aec8e5fe (patch) | |
tree | d887079dfd8ca2c43fa0e8a42472578e76521cbd /c/src/lib/libbsp/sparc/shared/uart/apbuart.c | |
parent | 2007-09-07 Daniel Hellstrom <daniel@gaisler.com> (diff) | |
download | rtems-13279f5dcfec1e9efedaa01a8c53e510aec8e5fe.tar.bz2 |
2007-09-07 Daniel Hellstrom <daniel@gaisler.com>
* shared/1553/b1553brm.c, shared/can/grcan.c, shared/can/grcan_rasta.c,
shared/can/occan.c, shared/spw/grspw.c, shared/spw/grspw_pci.c,
shared/uart/apbuart.c: Remove warnings.
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/uart/apbuart.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/uart/apbuart.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/uart/apbuart.c b/c/src/lib/libbsp/sparc/shared/uart/apbuart.c index 8a04665a13..144d394182 100644 --- a/c/src/lib/libbsp/sparc/shared/uart/apbuart.c +++ b/c/src/lib/libbsp/sparc/shared/uart/apbuart.c @@ -44,6 +44,8 @@ #ifndef APBUART_REG_INT #define APBUART_REG_INT(handler,irq,arg) set_vector(handler,irq+0x10,1) + #undef APBUART_DEFINE_INTHANDLER + #define APBUART_DEFINE_INTHANDLER #endif /* Default to 40MHz system clock */ @@ -117,7 +119,9 @@ static rtems_driver_address_table apbuart_driver = APBUART_DRIVER_TABLE_ENTRY; static amba_confarea_type *amba_bus; static void apbuart_interrupt(apbuart_priv *uart); +#ifdef APBUART_DEFINE_INTHANDLER static void apbuart_interrupt_handler(rtems_vector_number v); +#endif static void apbuart_hw_close(apbuart_priv *uart); static void apbuart_hw_open(apbuart_priv *uart); @@ -213,6 +217,7 @@ static void apbuart_hw_close(apbuart_priv *uart){ uart->regs->ctrl = 0; } +#ifdef APBUART_DEFINE_INTHANDLER /* interrupt handler */ static void apbuart_interrupt_handler(rtems_vector_number v){ int minor; @@ -225,6 +230,7 @@ static void apbuart_interrupt_handler(rtems_vector_number v){ } } } +#endif /* The interrupt handler, taking care of the * APBUART hardware |