Changeset 6279149 in rtems


Ignore:
Timestamp:
Oct 8, 2014, 9:04:56 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
6adacd89
Parents:
8536b67
git-author:
Joel Sherrill <joel.sherrill@…> (10/08/14 21:04:56)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/10/14 15:17:09)
Message:

Add console-polled.h and update all BSPs that should use it.

The file console-polled.h provides the prototypes for the three
required methods when implementing a single port polled console
driver. This paradigm is common on simulators and simple hardware.

+ Updated the BSPs Makefile.am to make console-polled.h available.
+ Regenerated the BSPs preinstall.sm.
+ Updated console support files to include <bsp/console-polled.h>.
+ Updated console support files to make printk() support method static.

Location:
c/src/lib/libbsp
Files:
1 added
43 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/gdbarmsim/Makefile.am

    r8536b67 r6279149  
    1717nodist_include_HEADERS = include/bspopts.h
    1818nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     19nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1920DISTCLEANFILES = include/bspopts.h
    2021noinst_PROGRAMS =
  • c/src/lib/libbsp/arm/gdbarmsim/console/console-io.c

    r8536b67 r6279149  
    99
    1010#include <bsp.h>
     11#include <bsp/console-polled.h>
    1112#include <rtems/libio.h>
    1213#include <stdlib.h>
     
    5253#include <rtems/bspIo.h>
    5354
    54 void MyBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
     55static void MyBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
    5556
    5657BSP_output_char_function_type           BSP_output_char = MyBSP_output_char;
  • c/src/lib/libbsp/arm/gdbarmsim/preinstall.am

    r8536b67 r6279149  
    7474PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    7575
     76$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     77        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     78PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     79
    7680$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    7781        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/avr/avrtest/Makefile.am

    r8536b67 r6279149  
    1313nodist_include_HEADERS = include/bspopts.h
    1414nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     15nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1516DISTCLEANFILES = include/bspopts.h
    1617noinst_PROGRAMS =
  • c/src/lib/libbsp/avr/avrtest/console/console-io.c

    r8536b67 r6279149  
    11/*
    22 *  This file contains the hardware specific portions of the TTY driver
    3  *  for the serial ports on the erc32.
    4  *
     3 *  for the serial ports on the avr.
     4 */
     5
     6/*
    57 *  COPYRIGHT (c) 1989-2008.
    68 *  On-Line Applications Research Corporation (OAR).
     
    1214
    1315#include <bsp.h>
     16#include <bsp/console-polled.h>
    1417#include <rtems/libio.h>
    1518#include <stdlib.h>
     
    6063#include <rtems/bspIo.h>
    6164
    62 void AVRsimBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
     65static void AVRsimBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
    6366
    6467BSP_output_char_function_type           BSP_output_char = AVRsimBSP_output_char;
  • c/src/lib/libbsp/avr/avrtest/preinstall.am

    r8536b67 r6279149  
    5454PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5555
     56$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     58PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     59
    5660$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    5761        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/h8300/h8sim/Makefile.am

    r8536b67 r6279149  
    1212nodist_include_HEADERS = include/bspopts.h
    1313nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     14nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1415DISTCLEANFILES = include/bspopts.h
    1516
  • c/src/lib/libbsp/h8300/h8sim/console/console-io.c

    r8536b67 r6279149  
    11/*
    22 *  This file contains the hardware specific portions of the TTY driver
    3  *  for the serial ports on the erc32.
     3 *  for the serial ports on the h8300 simulator in gdb.
    44 */
    55
     
    1414
    1515#include <bsp.h>
     16#include <bsp/console-polled.h>
    1617#include <rtems/libio.h>
    1718#include <stdlib.h>
     
    5960#include <rtems/bspIo.h>
    6061
    61 void H8simBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
     62static void H8simBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
    6263
    6364BSP_output_char_function_type           BSP_output_char = H8simBSP_output_char;
  • c/src/lib/libbsp/h8300/h8sim/preinstall.am

    r8536b67 r6279149  
    5454PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5555
     56$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     58PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     59
    5660$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    5761        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/m32c/m32cbsp/Makefile.am

    r8536b67 r6279149  
    1313nodist_include_HEADERS = include/bspopts.h
    1414nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     15nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1516DISTCLEANFILES = include/bspopts.h
    1617noinst_PROGRAMS =
  • c/src/lib/libbsp/m32c/m32cbsp/console/console-io.c

    r8536b67 r6279149  
    11/*
    22 *  This file contains the hardware specific portions of the TTY driver
    3  *  for the serial ports on the erc32.
    4  *
     3 *  for the serial ports on the m32c simulator in gdb.
     4 */
     5
     6/*
    57 *  COPYRIGHT (c) 1989-2008.
    68 *  On-Line Applications Research Corporation (OAR).
     
    1214
    1315#include <bsp.h>
     16#include <bsp/console-polled.h>
    1417#include <rtems/libio.h>
    1518#include <stdlib.h>
     
    5760#include <rtems/bspIo.h>
    5861
    59 void M32CsimBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
     62static void M32CsimBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
    6063
    6164BSP_output_char_function_type       BSP_output_char = M32CsimBSP_output_char;
  • c/src/lib/libbsp/m32c/m32cbsp/preinstall.am

    r8536b67 r6279149  
    5454PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5555
     56$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     58PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     59
    5660$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    5761        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/m32r/m32rsim/Makefile.am

    r8536b67 r6279149  
    1313nodist_include_HEADERS = include/bspopts.h
    1414nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     15nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1516DISTCLEANFILES = include/bspopts.h
    1617noinst_PROGRAMS =
  • c/src/lib/libbsp/m32r/m32rsim/console/console-io.c

    r8536b67 r6279149  
    99
    1010#include <bsp.h>
     11#include <bsp/console-polled.h>
    1112#include <rtems/libio.h>
    1213#include <stdlib.h>
     
    5455#include <rtems/bspIo.h>
    5556
    56 void console_output_char(char c) { console_outbyte_polled( 0, c ); }
     57static void console_output_char(char c) { console_outbyte_polled( 0, c ); }
    5758
    5859BSP_output_char_function_type           BSP_output_char = console_output_char;
  • c/src/lib/libbsp/m32r/m32rsim/preinstall.am

    r8536b67 r6279149  
    5454PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5555
     56$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     58PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     59
    5660$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    5761        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/m68k/csb360/Makefile.am

    r8536b67 r6279149  
    1212nodist_include_HEADERS = include/bspopts.h
    1313nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     14nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1415DISTCLEANFILES = include/bspopts.h
    1516
  • c/src/lib/libbsp/m68k/csb360/console/console-io.c

    r8536b67 r6279149  
    22 *  This file contains the hardware specific portions of the TTY driver
    33 *  for the serial ports on the mcf5272
    4  *
     4 */
     5
     6/*
    57 *  COPYRIGHT (c) 1989-2000.
    68 *  On-Line Applications Research Corporation (OAR).
     
    1214
    1315#include <bsp.h>
     16#include <bsp/console-polled.h>
    1417#include <rtems/libio.h>
    1518#include <mcf5272/mcf5272.h>
     
    8891#include <rtems/bspIo.h>
    8992
    90 void mcf5272_output_char(char c) { console_outbyte_polled( 0, c ); }
     93static void mcf5272_output_char(char c) { console_outbyte_polled( 0, c ); }
    9194
    9295BSP_output_char_function_type           BSP_output_char = mcf5272_output_char;
  • c/src/lib/libbsp/m68k/csb360/preinstall.am

    r8536b67 r6279149  
    5454PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5555
     56$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     58PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     59
    5660$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    5761        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/mips/csb350/Makefile.am

    r8536b67 r6279149  
    1717nodist_include_HEADERS = include/bspopts.h
    1818nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     19nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1920DISTCLEANFILES = include/bspopts.h
    2021nodist_include_HEADERS += ../../shared/include/coverhd.h
  • c/src/lib/libbsp/mips/csb350/console/console-io.c

    r8536b67 r6279149  
    22 *  This file contains the hardware specific portions of the TTY driver
    33 *  for the serial ports on the csb350.
    4  *
    5  *  Logic based on the jmr3904-io.c file in newlib 1.8.2
    6  *
     4 */
     5
     6/*
    77 *  COPYRIGHT (c) 1989-2000.
    88 *  On-Line Applications Research Corporation (OAR).
     
    1414
    1515#include <bsp.h>
     16#include <bsp/console-polled.h>
    1617#include <rtems/libio.h>
    1718#include <libcpu/au1x00.h>
     
    8182}
    8283
    83 int csb250_get_char(void)
     84static int csb250_get_char(void)
    8485{
    8586  return console_inbyte_nonblocking(0);
  • c/src/lib/libbsp/mips/csb350/preinstall.am

    r8536b67 r6279149  
    7070PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    7171
     72$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     73        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     74PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     75
    7276$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    7377        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/mips/jmr3904/Makefile.am

    r8536b67 r6279149  
    1717nodist_include_HEADERS = include/bspopts.h
    1818nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     19nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1920DISTCLEANFILES = include/bspopts.h
    2021
  • c/src/lib/libbsp/mips/jmr3904/console/console-io.c

    r8536b67 r6279149  
    44 *
    55 *  Logic based on the jmr3904-io.c file in newlib 1.8.2
    6  *
     6 */
     7
     8/*
    79 *  COPYRIGHT (c) 1989-2000.
    810 *  On-Line Applications Research Corporation (OAR).
     
    1416
    1517#include <bsp.h>
     18#include <bsp/console-polled.h>
    1619#include <rtems/libio.h>
    1720#include <stdlib.h>
     
    115118#include <rtems/bspIo.h>
    116119
    117 void JMR3904_output_char(char c) { console_outbyte_polled( 0, c ); }
     120static void JMR3904_output_char(char c) { console_outbyte_polled( 0, c ); }
    118121
    119122BSP_output_char_function_type           BSP_output_char = JMR3904_output_char;
  • c/src/lib/libbsp/mips/jmr3904/preinstall.am

    r8536b67 r6279149  
    7070PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    7171
     72$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     73        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     74PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     75
    7276$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    7377        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/moxie/moxiesim/Makefile.am

    r8536b67 r6279149  
    1616nodist_include_HEADERS = include/bspopts.h
    1717nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     18nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1819DISTCLEANFILES = include/bspopts.h
    1920
  • c/src/lib/libbsp/moxie/moxiesim/console/console-io.c

    r8536b67 r6279149  
    22 *  This file contains the hardware specific portions of the TTY driver
    33 *  for the Moxie GDB simulator.
    4  *
     4 */
     5
     6/*
    57 *  COPYRIGHT (c) 2011.
    68 *  Anthony Green.
     
    1618
    1719#include <bsp.h>
     20#include <bsp/console-polled.h>
    1821#include <rtems/libio.h>
    1922#include <stdlib.h>
     
    6164#include <rtems/bspIo.h>
    6265
    63 void moxiesim_output_char(char c) { console_outbyte_polled( 0, c ); }
     66static void moxiesim_output_char(char c) { console_outbyte_polled( 0, c ); }
    6467
    6568BSP_output_char_function_type           BSP_output_char = moxiesim_output_char;
  • c/src/lib/libbsp/moxie/moxiesim/preinstall.am

    r8536b67 r6279149  
    5454PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5555
     56$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     58PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     59
    5660$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    5761        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/nios2/nios2_iss/Makefile.am

    r8536b67 r6279149  
    1212nodist_include_HEADERS = include/bspopts.h
    1313nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     14nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1415DISTCLEANFILES = include/bspopts.h
    1516
  • c/src/lib/libbsp/nios2/nios2_iss/console/console.c

    r8536b67 r6279149  
    11/*
    22 *  This file implements simple console IO via JTAG UART.
    3  *
    4  *  Based on no_cpu/console.c
     3 */
     4
     5/*
    56 *  COPYRIGHT (c) 1989-1999.
    67 *  On-Line Applications Research Corporation (OAR).
     
    1718
    1819#include <bsp.h>
     20#include <bsp/console-polled.h>
    1921#include <rtems/libio.h>
    2022
     
    114116
    115117
    116 void ISS_output_char(char c) { console_outbyte_polled( 0, c ); }
     118static void ISS_output_char(char c) { console_outbyte_polled( 0, c ); }
    117119
    118120BSP_output_char_function_type           BSP_output_char = ISS_output_char;
  • c/src/lib/libbsp/nios2/nios2_iss/preinstall.am

    r8536b67 r6279149  
    5454PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5555
     56$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     58PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     59
    5660$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    5761        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/powerpc/psim/Makefile.am

    r8536b67 r6279149  
    1515nodist_include_HEADERS = include/bspopts.h
    1616nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     17nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1718DISTCLEANFILES = include/bspopts.h
    1819
  • c/src/lib/libbsp/powerpc/psim/console/console-io.c

    r8536b67 r6279149  
    1414
    1515#include <bsp.h>
     16#include <bsp/console-polled.h>
    1617#include <rtems/libio.h>
    1718#include <stdlib.h>
     
    7273#include <rtems/bspIo.h>
    7374
    74 void PSIM_output_char(char c) { console_outbyte_polled( 0, c ); }
     75static void PSIM_output_char(char c) { console_outbyte_polled( 0, c ); }
    7576
    7677BSP_output_char_function_type           BSP_output_char = PSIM_output_char;
  • c/src/lib/libbsp/powerpc/psim/preinstall.am

    r8536b67 r6279149  
    6262PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    6363
     64$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     65        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     66PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     67
    6468$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    6569        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/powerpc/qemuppc/Makefile.am

    r8536b67 r6279149  
    1313nodist_include_HEADERS = include/bspopts.h
    1414nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     15nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1516DISTCLEANFILES = include/bspopts.h
    1617noinst_PROGRAMS =
  • c/src/lib/libbsp/powerpc/qemuppc/console/console-io.c

    r8536b67 r6279149  
    11/*
    22 *  This file contains the hardware specific portions of the TTY driver
    3  *  for the serial ports on the erc32.
    4  *
     3 *  for the serial ports on the qemuppc.
     4 */
     5
     6/*
    57 *  COPYRIGHT (c) 1989-2008.
    68 *  On-Line Applications Research Corporation (OAR).
     
    1214
    1315#include <bsp.h>
     16#include <bsp/console-polled.h>
    1417#include <rtems/libio.h>
    1518#include <stdlib.h>
     
    6972#include <rtems/bspIo.h>
    7073
    71 void simBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
     74static void simBSP_output_char(char c) { console_outbyte_polled( 0, c ); }
    7275
    7376BSP_output_char_function_type           BSP_output_char = simBSP_output_char;
  • c/src/lib/libbsp/powerpc/qemuppc/preinstall.am

    r8536b67 r6279149  
    5454PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5555
     56$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     58PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     59
    5660$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    5761        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/sh/shsim/Makefile.am

    r8536b67 r6279149  
    1313nodist_include_HEADERS = include/bspopts.h
    1414nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     15nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1516DISTCLEANFILES = include/bspopts.h
    1617
  • c/src/lib/libbsp/sh/shsim/console/console-io.c

    r8536b67 r6279149  
    22 *  This file contains the hardware specific portions of the TTY driver
    33 *  for the simulators stdin/out.
    4  *
    5  *  Logic based on newlib-1.8.2/newlib/libc/sys/sh/syscalls.c
    6  *
     4 */
     5
     6/*
    77 *  COPYRIGHT (c) 1989-2011.
    88 *  On-Line Applications Research Corporation (OAR).
     
    1414
    1515#include <bsp.h>
     16#include <bsp/console-polled.h>
    1617#include <rtems/libio.h>
    1718#include <stdlib.h>
  • c/src/lib/libbsp/sh/shsim/preinstall.am

    r8536b67 r6279149  
    5858PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5959
     60$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     61        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     62PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     63
    6064$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    6165        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
  • c/src/lib/libbsp/shared/console-polled.c

    r8536b67 r6279149  
    33 *  console device driver.  If a BSP chooses to use this, then it
    44 *  only has to provide a few board dependent routines.
    5  *
     5 */
     6
     7/*
    68 *  COPYRIGHT (c) 1989-1997.
    79 *  On-Line Applications Research Corporation (OAR).
     
    1719#include <assert.h>
    1820
    19 /* external prototypes for monitor interface routines */
    20 void console_outbyte_polled(int  port, char ch);
    21 int console_inbyte_nonblocking(int port);
    22 void console_initialize_hardware(void);
     21#include <bsp/console-polled.h>
     22
     23/*
     24 *  Prototypes
     25 */
    2326ssize_t console_write_support(int, const char *, size_t);
    2427
  • c/src/lib/libbsp/v850/gdbv850sim/Makefile.am

    r8536b67 r6279149  
    1717nodist_include_HEADERS = include/bspopts.h
    1818nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
     19nodist_include_bsp_HEADERS += ../../shared/include/console-polled.h
    1920DISTCLEANFILES = include/bspopts.h
    2021noinst_PROGRAMS =
  • c/src/lib/libbsp/v850/gdbv850sim/console/console-io.c

    r8536b67 r6279149  
    99
    1010#include <bsp.h>
     11#include <bsp/console-polled.h>
    1112#include <rtems/libio.h>
    1213#include <bsp/syscall.h>
     
    5657#include <rtems/bspIo.h>
    5758
    58 void console_output_char(char c) { console_outbyte_polled( 0, c ); }
     59static void console_output_char(char c) { console_outbyte_polled( 0, c ); }
    5960
    6061BSP_output_char_function_type           BSP_output_char = console_output_char;
  • c/src/lib/libbsp/v850/gdbv850sim/preinstall.am

    r8536b67 r6279149  
    5858PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
    5959
     60$(PROJECT_INCLUDE)/bsp/console-polled.h: ../../shared/include/console-polled.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
     61        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/console-polled.h
     62PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/console-polled.h
     63
    6064$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
    6165        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
Note: See TracChangeset for help on using the changeset viewer.