-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: chronos: provide dummy getchar
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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; | ||
} |