Blame view

RIOT/drivers/at86rf2xx/include/at86rf2xx_params.h 1.97 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
  /*
   * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
   *               2015 Hauke Petersen <hauke.petersen@fu-berlin.de>
   *
   * 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_at86rf2xx
   *
   * @{
   * @file
   * @brief       Default configuration for the AT86RF2xx driver
   *
   * @author      Kaspar Schleiser <kaspar@schleiser.de>
   * @author      Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef AT86RF2XX_PARAMS_H
  #define AT86RF2XX_PARAMS_H
  
  #include "board.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @name    Set default configuration parameters for the AT86RF2xx driver
   * @{
   */
  #ifndef AT86RF2XX_PARAM_SPI
  #define AT86RF2XX_PARAM_SPI         (SPI_DEV(1))
  #endif
  #ifndef AT86RF2XX_PARAM_SPI_CLK
  #define AT86RF2XX_PARAM_SPI_CLK     (SPI_CLK_5MHZ)
  #endif
  #ifndef AT86RF2XX_PARAM_CS
  #define AT86RF2XX_PARAM_CS          (GPIO_PIN(PORT_D, 6))
  #endif
  #ifndef AT86RF2XX_PARAM_INT
f8d83614   elopes   new app sntp serv...
44
  #define AT86RF2XX_PARAM_INT         (GPIO_PIN(PORT_D, 10))
a752c7ab   elopes   add first test an...
45
46
47
48
49
  #endif
  #ifndef AT86RF2XX_PARAM_SLEEP
  #define AT86RF2XX_PARAM_SLEEP       (GPIO_PIN(PORT_D, 7))
  #endif
  #ifndef AT86RF2XX_PARAM_RESET
f8d83614   elopes   new app sntp serv...
50
  #define AT86RF2XX_PARAM_RESET       (GPIO_PIN(PORT_D, 4))
a752c7ab   elopes   add first test an...
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
  #endif
  
  #define AT86RF2XX_PARAMS_DEFAULT    {.spi = AT86RF2XX_PARAM_SPI, \
                                       .spi_clk = AT86RF2XX_PARAM_SPI_CLK, \
                                       .cs_pin = AT86RF2XX_PARAM_CS, \
                                       .int_pin = AT86RF2XX_PARAM_INT, \
                                       .sleep_pin = AT86RF2XX_PARAM_SLEEP, \
                                       .reset_pin = AT86RF2XX_PARAM_RESET}
  /**@}*/
  
  /**
   * @brief   AT86RF231 configuration
   */
  static const at86rf2xx_params_t at86rf2xx_params[] =
  {
  #ifdef AT86RF2XX_PARAMS_BOARD
      AT86RF2XX_PARAMS_BOARD,
  #else
      AT86RF2XX_PARAMS_DEFAULT,
  #endif
  };
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* AT86RF2XX_PARAMS_H */
  /** @} */