xbee_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
3  * 2016 Freie Universität Berlin
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef XBEE_PARAMS_H
22 #define XBEE_PARAMS_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #ifndef XBEE_PARAM_UART
33 #define XBEE_PARAM_UART (UART_DEV(1))
34 #endif
35 #ifndef XBEE_PARAM_BR
36 #define XBEE_PARAM_BR (9600U)
37 #endif
38 #ifndef XBEE_PARAM_PIN_SLEEP
39 #define XBEE_PARAM_PIN_SLEEP (GPIO_UNDEF)
40 #endif
41 #ifndef XBEE_PARAM_PIN_RESET
42 #define XBEE_PARAM_PIN_RESET (GPIO_UNDEF)
43 #endif
44 
45 #ifndef XBEE_PARAMS
46 #define XBEE_PARAMS { .uart = XBEE_PARAM_UART, \
47  .br = XBEE_PARAM_BR, \
48  .pin_sleep = XBEE_PARAM_PIN_SLEEP, \
49  .pin_reset = XBEE_PARAM_PIN_RESET }
50 #endif
51 
56 static const xbee_params_t xbee_params[] =
57 {
58  XBEE_PARAMS
59 };
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* XBEE_PARAMS_H */
66 
xbee_params
static const xbee_params_t xbee_params[]
XBee configuration.
Definition: xbee_params.h:56
xbee_params_t
Configuration parameters for XBee devices.
Definition: xbee.h:117