/* * Copyright (C) 2015-17 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. */ /** * @defgroup drivers_slipdev_stdio STDIO via SLIP * @ingroup sys_stdio * @brief Standard input/output backend multiplexed via SLIP * * This will multiplex STDIO via the Serial Line Internet Protocol. * The shell can be accessed via the `sliptty` tool. * * To enable this stdio implementation, select * * USEMODULE += slipdev_stdio * * @see drivers_slipdev */ /** * @defgroup drivers_slipdev SLIP network device * @ingroup drivers_netdev * @brief SLIP network device over @ref drivers_periph_uart * @see [RFC 1055](https://github.com/RIOT-OS/RIOT/pull/6487) * @{ * * @file * @brief SLIP device definitions * * @author Martine Lenders */ #ifndef SLIPDEV_H #define SLIPDEV_H #include #include "cib.h" #include "net/netdev.h" #include "periph/uart.h" #include "tsrb.h" #ifdef __cplusplus extern "C" { #endif /** * @defgroup drivers_slipdev_config SLIP Network driver compile configuration * @ingroup config_drivers_netdev * @{ */ /** * @brief UART buffer size used for TX and RX buffers * * Reduce this value if your expected traffic does not include full IPv6 MTU * sized packets. * * @pre Needs to be power of two and `<= INT_MAX` */ #ifdef CONFIG_SLIPDEV_BUFSIZE_EXP #define CONFIG_SLIPDEV_BUFSIZE (1<