Changeset 6279149 in rtems for c/src/lib/libbsp/h8300


Ignore:
Timestamp:
Oct 8, 2014, 9:04:56 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, 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/h8300/h8sim
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.