Blame view

RIOT/boards/nz32-sc151/include/sx127x_params.h 1 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
  /*
   * Copyright (C) 2017 Inria Chile
   *
   * 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     boards_nz32-sc151
   * @{
   *
   * @file
   * @brief       sx127x configuration for nz32-sc15 using modtronix inAir9
   *              LoRa module
   * @author      Francisco Molina <francisco.molina@inria.cl>
  */
  
  #ifndef SX127X_PARAMS_H
  #define SX127X_PARAMS_H
  
  #include "sx127x.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @brief   Board specific SX127X configuration
   */
  static const sx127x_params_t sx127x_params[] =
  {
      {
          .spi       = SPI_DEV(0),
          .nss_pin   = GPIO_PIN(PORT_C,  8),
          .reset_pin = GPIO_PIN(PORT_A,  9),
          .dio0_pin  = GPIO_PIN(PORT_B,  0),
          .dio1_pin  = GPIO_PIN(PORT_B,  1),
          .dio2_pin  = GPIO_PIN(PORT_C,  6),
          .dio3_pin  = GPIO_PIN(PORT_A, 10)
      }
  };
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* SX127X_PARAMS_H */
  /** @} */