Changeset e4f62d9 in rtems


Ignore:
Timestamp:
Mar 28, 2007, 6:08:38 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
d7cefbf6
Parents:
a185db7
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

    ra185db7 re4f62d9  
     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

    ra185db7 re4f62d9  
    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 clock.rel timer.rel gnatsupp.rel \
     76  debugio.rel
    7277if HAS_NETWORKING
    7378libbsp_a_LIBADD += erc32sonic.rel
    7479endif
     80
     81libbsp_a_LIBADD +=  \
     82startup_rel-boardinit.o \
     83startup_rel-bootcard.o \
     84startup_rel-bspclean.o \
     85startup_rel-bsplibc.o \
     86startup_rel-bsppost.o \
     87startup_rel-bspstart.o \
     88startup_rel-erc32mec.o \
     89startup_rel-sbrk.o \
     90startup_rel-setvec.o \
     91startup_rel-spurious.o
    7592
    7693libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
  • c/src/lib/libbsp/sparc/erc32/console/console.c

    ra185db7 re4f62d9  
    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

    ra185db7 re4f62d9  
    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.