Loading...
Searching...
No Matches
xbee_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Kaspar Schleiser <kaspar@schleiser.de>
3 * SPDX-FileCopyrightText: 2016 Freie Universität Berlin
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28#ifndef XBEE_PARAM_UART
29#define XBEE_PARAM_UART (UART_DEV(1))
30#endif
31#ifndef XBEE_PARAM_BR
32#define XBEE_PARAM_BR (9600U)
33#endif
34#ifndef XBEE_PARAM_PIN_SLEEP
35#define XBEE_PARAM_PIN_SLEEP (GPIO_UNDEF)
36#endif
37#ifndef XBEE_PARAM_PIN_RESET
38#define XBEE_PARAM_PIN_RESET (GPIO_UNDEF)
39#endif
40
41#ifndef XBEE_PARAMS
42#define XBEE_PARAMS { .uart = XBEE_PARAM_UART, \
43 .br = XBEE_PARAM_BR, \
44 .pin_sleep = XBEE_PARAM_PIN_SLEEP, \
45 .pin_reset = XBEE_PARAM_PIN_RESET }
46#endif
48
52static const xbee_params_t xbee_params[] =
53{
54 XBEE_PARAMS
55};
56
57#ifdef __cplusplus
58}
59#endif
60
Configuration parameters for XBee devices.
Definition xbee.h:115
static const xbee_params_t xbee_params[]
XBee configuration.
Definition xbee_params.h:52