/* * Copyright (C) 2016 Michael Andersen * 2018 Freie Universität Berlin * * 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. */ /** * @ingroup sys_stdio_rtt * * @{ * @file * * @author Michael Andersen * @author Hauke Petersen */ #ifndef STDIO_RTT_H #define STDIO_RTT_H #include "stdio_base.h" #ifdef __cplusplus extern "C" { #endif /** * @brief enable stdin polling, at a power consumption cost. This is enabled * by default unless STDIO_RTT_DISABLE_STDIN is defined. */ void rtt_stdio_enable_stdin(void); /** * @brief enable stdout blocking and free space polling. This must be done * with caution because if there is no RTT client attached, all * writes to stdout will block indefinitely. This can be enabled * automatically by defining STDIO_RTT_ENABLE_BLOCKING_STDOUT */ void rtt_stdio_enable_blocking_stdout(void); #ifdef __cplusplus } #endif /** @} */ #endif /* STDIO_RTT_H */