Changeset a2a6187 in rtems


Ignore:
Timestamp:
Mar 28, 2007, 6:08:58 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
7a0a8729
Parents:
2fc3592d
Message:

2007-03-28 Joel Sherrill <joel@…>

PR 1233/bsps

  • Makefile.am, console/console.c, console/debugputs.c: Move printk support code into debug IO file so you do not get the entire console driver when you do not want it.
Location:
c/src/lib/libbsp/sparc/erc32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/ChangeLog

    r2fc3592d ra2a6187  
     12007-03-28      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 1233/bsps
     4        * Makefile.am, console/console.c, console/debugputs.c: Move printk
     5        support code into debug IO file so you do not get the entire console
     6        driver when you do not want it.
     7
    182006-12-02      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • c/src/lib/libbsp/sparc/erc32/Makefile.am

    r2fc3592d ra2a6187  
    4444
    4545noinst_PROGRAMS += console.rel
    46 console_rel_SOURCES = console/console.c console/consolereserveresources.c \
    47     console/debugputs.c
     46console_rel_SOURCES = console/console.c console/consolereserveresources.c
    4847console_rel_CPPFLAGS = $(AM_CPPFLAGS)
    4948console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     49
     50noinst_PROGRAMS += debugio.rel
     51debugio_rel_SOURCES = console/debugputs.c
     52debugio_rel_CPPFLAGS = $(AM_CPPFLAGS)
     53debugio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    5054
    5155noinst_PROGRAMS += clock.rel
     
    6973noinst_LIBRARIES = libbsp.a
    7074libbsp_a_SOURCES =
    71 libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel
     75libbsp_a_LIBADD = console.rel debugio.rel clock.rel timer.rel gnatsupp.rel
    7276if HAS_NETWORKING
    7377libbsp_a_LIBADD += erc32sonic.rel
    7478endif
     79
     80libbsp_a_LIBADD += startup_rel-boardinit.o startup_rel-bootcard.o \
     81    startup_rel-bspclean.o startup_rel-bsplibc.o startup_rel-bsppost.o \
     82    startup_rel-bspstart.o startup_rel-erc32mec.o startup_rel-main.o \
     83    startup_rel-sbrk.o startup_rel-setvec.o startup_rel-spurious.o
    7584
    7685libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
  • c/src/lib/libbsp/sparc/erc32/console/console.c

    r2fc3592d ra2a6187  
    417417  return rtems_termios_ioctl (arg);
    418418}
    419 
    420 /*
    421  *  To support printk
    422  */
    423 
    424 #include <rtems/bspIo.h>
    425 
    426 void BSP_output_char_f(char c) { console_outbyte_polled( 0, c ); }
    427 
    428 BSP_output_char_function_type           BSP_output_char = BSP_output_char_f;
    429 BSP_polling_getchar_function_type       BSP_poll_char = NULL;
  • c/src/lib/libbsp/sparc/erc32/console/debugputs.c

    r2fc3592d ra2a6187  
    1717#include <rtems/libio.h>
    1818#include <stdlib.h>
    19 #include <assert.h>
    2019
    2120/*
     
    7574
    7675    default:
    77       assert( 0 );
     76      rtems_fatal_error_occurred( 'D' << 8 | (port & 0xffffff) );
    7877  }
    7978
     
    111110  ERC32_Restore_interrupt( ERC32_INTERRUPT_UART_A_RX_TX, old_level );
    112111}
     112
     113/*
     114 *  To support printk
     115 */
     116
     117#include <rtems/bspIo.h>
     118
     119void BSP_output_char_f(char c) { console_outbyte_polled( 0, c ); }
     120
     121BSP_output_char_function_type           BSP_output_char = BSP_output_char_f;
     122BSP_polling_getchar_function_type       BSP_poll_char = NULL;
Note: See TracChangeset for help on using the changeset viewer.