2015-07-07 00:31:27 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Eistec AB
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2017-08-24 21:03:16 +02:00
|
|
|
* @ingroup cpu_msp430_common
|
2015-07-07 00:31:27 +02:00
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief stdio.h wrapper for MSP430
|
|
|
|
* @see http://www.cplusplus.com/reference/cstdio/
|
|
|
|
*
|
2015-09-20 13:47:39 +02:00
|
|
|
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se
|
2015-07-07 00:31:27 +02:00
|
|
|
*/
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#ifndef STDIO_H
|
|
|
|
#define STDIO_H
|
2015-07-07 00:31:27 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The MSP430 toolchain does not provide getchar in stdio.h.
|
|
|
|
* As a workaround, we include the system stdio.h here and then add getchar.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include_next <stdio.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-12-06 18:26:31 +01:00
|
|
|
#define SEEK_SET 0 /* Seek from beginning of file. */
|
|
|
|
#define SEEK_CUR 1 /* Seek from current position. */
|
|
|
|
#define SEEK_END 2 /* Seek from end of file. */
|
|
|
|
|
2017-01-08 19:27:12 +01:00
|
|
|
int getchar(void);
|
|
|
|
|
2015-07-07 00:31:27 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-05-23 18:19:52 +02:00
|
|
|
#endif /* STDIO_H */
|
2017-08-24 21:03:16 +02:00
|
|
|
/** @} */
|