Loading...
Searching...
No Matches
slipdev_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2020 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
20
21#include "board.h"
22#include "slipdev.h"
23#include "stdio_uart.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
33#ifndef SLIPDEV_PARAM_UART
34# ifdef MODULE_STDIO_UART
35# define SLIPDEV_PARAM_UART UART_DEV(1)
36# else
37# define SLIPDEV_PARAM_UART STDIO_UART_DEV
38# endif
39#endif /* SLIPDEV_PARAM_UART */
40
41#ifndef SLIPDEV_PARAM_BAUDRATE
42# define SLIPDEV_PARAM_BAUDRATE STDIO_UART_BAUDRATE
43#endif /* SLIPDEV_PARAM_BAUDRATE */
44
45#ifndef SLIPDEV_PARAMS
46#define SLIPDEV_PARAMS { .uart = SLIPDEV_PARAM_UART, \
47 .baudrate = SLIPDEV_PARAM_BAUDRATE }
48#endif
50
58 SLIPDEV_PARAMS
59};
60
61#ifdef __cplusplus
62}
63#endif
64
SLIP device definitions.
static const slipdev_params_t slipdev_params[]
slipdev configuration
Configuration parameters for a slipdev.
Definition slipdev.h:154