mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
c6bcc344ca
When using socket stdio, add option to replay what has been written to stdout while not connected (`-r`). The implementation is to simply use the existing log file (which is implicitly created when the option is used), and read from it until EOF upon reconnect. closes #476
17 lines
455 B
C
17 lines
455 B
C
#ifdef MODULE_UART0
|
|
#include <sys/select.h>
|
|
void _native_handle_uart0_input(void);
|
|
/**
|
|
* @brief: initialize uart0
|
|
*
|
|
* @param stdiotype: "stdio", "tcp", "udp" io redirection
|
|
* @param ioparam: a string containing a port number if stdiotype is tcp
|
|
*/
|
|
void _native_init_uart0(char *stdiotype, char *ioparam, int replay);
|
|
int _native_set_uart_fds(void);
|
|
#endif
|
|
|
|
extern int _native_null_out_file;
|
|
extern int _native_null_in_pipe[2];
|
|
void board_init(void);
|