Ignore:
Timestamp:
Feb 21, 2018, 11:40:18 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
ff281a6f
Parents:
4899759
git-author:
Sebastian Huber <sebastian.huber@…> (02/21/18 11:40:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/06/18 11:32:09)
Message:

Add a simple task console driver

Close #3320.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/consolesimple.c

    r4899759 r337a186  
    1717#include <rtems/imfs.h>
    1818
    19 static ssize_t _Console_simple_Read(
    20   rtems_libio_t *iop,
    21   void          *buffer,
    22   size_t         count
    23 )
    24 {
    25   char    *buf;
    26   ssize_t  i;
    27   ssize_t  n;
    28 
    29   buf = buffer;
    30   n = (ssize_t) count;
    31 
    32   for ( i = 0; i < n; ++i ) {
    33     int c;
    34 
    35     do {
    36       c = getchark();
    37     } while (c == -1);
    38 
    39     buf[ i ] = (char) c;
    40   }
    41 
    42   return n;
    43 }
     19#include "consolesimple.h"
    4420
    4521static ssize_t _Console_simple_Write(
Note: See TracChangeset for help on using the changeset viewer.