2014-09-16 13:09:14 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013, 2014 Ludwig Ortmann
|
|
|
|
*
|
|
|
|
* 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-10-13 15:25:50 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-07-15 20:57:12 +02:00
|
|
|
#ifdef MODULE_UART0
|
|
|
|
#include <sys/select.h>
|
|
|
|
void _native_handle_uart0_input(void);
|
2013-08-18 20:34:53 +02:00
|
|
|
/**
|
|
|
|
* @brief: initialize uart0
|
|
|
|
*
|
|
|
|
* @param stdiotype: "stdio", "tcp", "udp" io redirection
|
|
|
|
* @param ioparam: a string containing a port number if stdiotype is tcp
|
|
|
|
*/
|
2014-07-17 12:55:24 +02:00
|
|
|
void _native_init_uart0(char *stdiotype, char *ioparam, int replay);
|
2013-07-16 17:57:52 +02:00
|
|
|
int _native_set_uart_fds(void);
|
2014-10-13 15:25:50 +02:00
|
|
|
#endif /* MODULE_UART0 */
|
2013-11-07 17:23:08 +01:00
|
|
|
|
2013-08-18 20:34:53 +02:00
|
|
|
extern int _native_null_out_file;
|
|
|
|
extern int _native_null_in_pipe[2];
|
2013-11-07 17:23:08 +01:00
|
|
|
void board_init(void);
|
2014-10-13 15:25:50 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|