Changeset ac28f15 in rtems


Ignore:
Timestamp:
Nov 3, 2017, 7:33:16 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
c4b8b147
Parents:
1082798
git-author:
Sebastian Huber <sebastian.huber@…> (11/03/17 07:33:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/06/17 06:25:51)
Message:

Add simple console driver

Update #3170.
Update #3199.

Location:
cpukit
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/console.h

    r1082798 rac28f15  
    148148);
    149149
     150/**
     151 * @brief Initializes a simple console device.
     152 *
     153 * This device writes via rtems_putc() and reads via getchark().  The Termios
     154 * framework is not used.  There is no support to change device settings, e.g.
     155 * baud, stop bits, parity, etc.
     156 */
     157void _Console_simple_Initialize( void );
     158
    150159#ifdef __cplusplus
    151160}
  • cpukit/libcsupport/Makefile.am

    r1082798 rac28f15  
    139139    $(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
    140140    $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
     141libcsupport_a_SOURCES += src/consolesimple.c
    141142libcsupport_a_SOURCES += src/printertask.c
    142143libcsupport_a_SOURCES += src/printerfprintfputc.c
  • cpukit/sapi/include/confdefs.h

    r1082798 rac28f15  
    16111611 { NULL, NULL, NULL, NULL, NULL, NULL }
    16121612
     1613#if defined(CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER) && \
     1614  defined(CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER)
     1615#error "CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER and CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER are mutually exclusive"
     1616#endif
     1617
    16131618#ifdef CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    16141619  #include <rtems/console.h>
     1620#endif
     1621
     1622#ifdef CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
     1623  #include <rtems/console.h>
     1624
     1625  #ifdef CONFIGURE_INIT
     1626    RTEMS_SYSINIT_ITEM(
     1627      _Console_simple_Initialize,
     1628      RTEMS_SYSINIT_DEVICE_DRIVERS,
     1629      RTEMS_SYSINIT_ORDER_SECOND
     1630    );
     1631  #endif
    16151632#endif
    16161633
Note: See TracChangeset for help on using the changeset viewer.