/* * Copyright (C) 2018-2020 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 drivers_slipdev * @{ * * @file * @brief Default configuration for the SLIP device driver * * @author Martine Lenders */ #ifndef SLIPDEV_PARAMS_H #define SLIPDEV_PARAMS_H #include "board.h" #include "slipdev.h" #ifdef MODULE_SLIPDEV_STDIO #include "stdio_uart.h" #endif #ifdef __cplusplus extern "C" { #endif /** * @name Set default configuration parameters for slipdev driver * @{ */ #ifndef SLIPDEV_PARAM_UART # ifndef MODULE_SLIPDEV_STDIO # define SLIPDEV_PARAM_UART (UART_DEV(0)) # else /* MODULE_SLIPDEV_STDIO */ # define SLIPDEV_PARAM_UART (STDIO_UART_DEV) # endif /* MODULE_SLIPDEV_STDIO */ #endif /* SLIPDEV_PARAM_UART */ #ifndef SLIPDEV_PARAM_BAUDRATE # ifndef MODULE_SLIPDEV_STDIO # define SLIPDEV_PARAM_BAUDRATE (115200U) # else /* MODULE_SLIPDEV_STDIO */ # define SLIPDEV_PARAM_BAUDRATE (STDIO_UART_BAUDRATE) # endif /* MODULE_SLIPDEV_STDIO */ #endif /* SLIPDEV_PARAM_BAUDRATE */ #ifndef SLIPDEV_PARAMS #define SLIPDEV_PARAMS { .uart = SLIPDEV_PARAM_UART, \ .baudrate = SLIPDEV_PARAM_BAUDRATE } #endif /** @} */ /** * @brief slipdev configuration * * The first element in this array will be used to multiplex stdio if * `slipdev_stdio` is included. */ static const slipdev_params_t slipdev_params[] = { SLIPDEV_PARAMS }; #ifdef __cplusplus } #endif #endif /* SLIPDEV_PARAMS_H */ /** @} */