Skip to content

Commit

Permalink
boards: chronos: provide dummy getchar
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Jul 16, 2015
1 parent c0d95cc commit 2618065
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions boards/chronos/putchar.c → boards/chronos/stdio.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2014 INRIA
* 2015 Kaspar Schleiser <[email protected]>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
Expand All @@ -13,21 +14,23 @@

/**
* @file
* @brief eZ430-chronos putchar dummy implementation
* @brief eZ430-chronos getchar/putchar dummy implementations
*
* @author Oliver Hahm <[email protected]>
* @author Kaspar Schleiser <[email protected]>
*
*/

static void _dummy(int c)
{
}

void (*_putchar)(int c) = _dummy;
#include <stdio.h>

int putchar(int c)
{
_putchar(c);
/* dummy implementation */
return c;
}

int getchar(void)
{
/* dummy implementation */
return EOF;
}

0 comments on commit 2618065

Please sign in to comment.