1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:52:44 +01:00

slipdev: provide default configuration

This commit is contained in:
Martine Lenders 2018-11-25 15:31:28 +01:00 committed by Martine S. Lenders
parent 0b1dce36ac
commit 23f6cf8a37
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -0,0 +1,59 @@
/*
* Copyright (C) 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.
*/
/**
* @defgroup
* @ingroup
* @brief
* @{
*
* @file
* @brief
*
* @author Martine Lenders <m.lenders@fu-berlin.de>
*/
#ifndef SLIPDEV_PARAMS_H
#define SLIPDEV_PARAMS_H
#include "board.h"
#include "slipdev.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Set default configuration parameters for slipdev driver
* @{
*/
#ifndef SLIPDEV_PARAM_UART
#define SLIPDEV_PARAM_UART (UART_DEV(0))
#endif
#ifndef SLIPDEV_PARAM_BAUDRATE
#define SLIPDEV_PARAM_BAUDRATE (115200U)
#endif
#ifndef SLIPDEV_PARAMS
#define SLIPDEV_PARAMS { .uart = SLIPDEV_PARAM_UART, \
.baudrate = SLIPDEV_PARAM_BAUDRATE }
#endif
/** @} */
/**
* @brief slipdev configuration
*/
static const slipdev_params_t slipdev_params[] = {
SLIPDEV_PARAMS
};
#ifdef __cplusplus
}
#endif
#endif /* SLIPDEV_PARAMS_H */
/** @} */