2014-02-02 16:48:18 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 INRIA
|
2015-07-30 13:17:08 +02:00
|
|
|
* 2015 Kaspar Schleiser <kaspar@schleiser.de>
|
2014-02-02 16:48:18 +01:00
|
|
|
*
|
2014-07-31 20:15:03 +02:00
|
|
|
* 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
|
|
|
|
* directory for more details.
|
2014-02-02 16:48:18 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2018-06-01 12:09:16 +02:00
|
|
|
* @ingroup boards_chronos
|
2014-02-02 16:48:18 +01:00
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2015-07-30 13:17:08 +02:00
|
|
|
* @brief eZ430-chronos getchar/putchar dummy implementation
|
2014-02-02 16:48:18 +01:00
|
|
|
*
|
|
|
|
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
* @author Kaspar Schleiser <kaspar@schleiser.de>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-07-30 13:17:08 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2013-07-29 16:41:43 +02:00
|
|
|
static void _dummy(int c)
|
|
|
|
{
|
2016-08-01 21:54:44 +02:00
|
|
|
(void)c;
|
2010-12-14 16:40:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void (*_putchar)(int c) = _dummy;
|
|
|
|
|
|
|
|
int putchar(int c)
|
|
|
|
{
|
|
|
|
_putchar(c);
|
|
|
|
return c;
|
|
|
|
}
|
2015-07-30 13:17:08 +02:00
|
|
|
|
|
|
|
int getchar(void)
|
|
|
|
{
|
|
|
|
/* dummy implementation */
|
|
|
|
return EOF;
|
|
|
|
}
|
2015-11-19 13:13:54 +01:00
|
|
|
|
|
|
|
ssize_t write(int fildes, const void *buf, size_t nbyte)
|
|
|
|
{
|
2016-08-01 21:54:44 +02:00
|
|
|
(void)fildes;
|
|
|
|
(void)buf;
|
|
|
|
(void)nbyte;
|
2015-11-19 13:13:54 +01:00
|
|
|
return -1;
|
|
|
|
}
|