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.

File:
1 edited

Legend:

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