zephyr/include/drivers/console/native_posix_console.h
Alberto Escolar Piedras e3f727cc6e native: added stdin handling for shell
Now the native console driver also handles stdin
so we can drive the shell from the command line,
a pipe or a file

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
2018-02-02 07:48:46 -08:00

30 lines
540 B
C

/*
* Copyright (c) 2018 Oticon A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _NATIVE_POSIX_CONSOLE_H
#define _NATIVE_POSIX_CONSOLE_H
#include "kernel.h"
#ifdef __cplusplus
extern "C" {
#endif
#if defined(CONFIG_NATIVE_POSIX_STDOUT_CONSOLE)
void posix_flush_stdout(void);
#endif
#if defined(CONFIG_NATIVE_POSIX_STDIN_CONSOLE)
void native_stdin_register_input(struct k_fifo *avail, struct k_fifo *lines,
u8_t (*completion)(char *str, u8_t len));
#endif
#ifdef __cplusplus
}
#endif
#endif /* _NATIVE_POSIX_CONSOLE_H */