Blame view

RIOT/drivers/xbee/include/xbee_params.h 1.44 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  /*
   * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
   *               2016 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_xbee
   * @{
   *
   * @file
   * @brief       Default configuration for XBee devices
   *
   * @author      Kaspar Schleiser <kaspar@schleiser.de>
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef XBEE_PARAMS_H
  #define XBEE_PARAMS_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @name    Set default configuration parameters for the XBee driver
   * @{
   */
  #ifndef XBEE_PARAM_UART
  #define XBEE_PARAM_UART         (UART_DEV(1))
  #endif
  #ifndef XBEE_PARAM_BR
  #define XBEE_PARAM_BR           (9600U)
  #endif
  #ifndef XBEE_PARAM_PIN_SLEEP
  #define XBEE_PARAM_PIN_SLEEP    (GPIO_UNDEF)
  #endif
  #ifndef XBEE_PARAM_PIN_RESET
  #define XBEE_PARAM_PIN_RESET    (GPIO_UNDEF)
  #endif
  
  #ifndef XBEE_PARAMS
  #define XBEE_PARAMS             { .uart      = XBEE_PARAM_UART, \
                                    .br        = XBEE_PARAM_BR, \
                                    .pin_sleep = XBEE_PARAM_PIN_SLEEP, \
                                    .pin_reset = XBEE_PARAM_PIN_RESET }
  #endif
  /**@}*/
  
  /**
   * @brief   XBee configuration
   */
  static const xbee_params_t xbee_params[] =
  {
      XBEE_PARAMS
  };
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* XBEE_PARAMS_H */
  /** @} */