sx127x_params.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Inria Chile
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
19 #ifndef SX127X_PARAMS_H
20 #define SX127X_PARAMS_H
21 
22 #include "sx127x.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 {
33  {
34  .spi = SPI_DEV(0),
35  .nss_pin = GPIO_PIN(PORT_C, 8),
36  .reset_pin = GPIO_PIN(PORT_A, 9),
37  .dio0_pin = GPIO_PIN(PORT_B, 0),
38  .dio1_pin = GPIO_PIN(PORT_B, 1),
39  .dio2_pin = GPIO_PIN(PORT_C, 6),
40  .dio3_pin = GPIO_PIN(PORT_A, 10)
41  }
42 };
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* SX127X_PARAMS_H */
49 
PORT_C
@ PORT_C
port C
Definition: periph_cpu.h:38
sx127x_params_t::spi
spi_t spi
SPI device.
Definition: sx127x.h:216
SPI_DEV
#define SPI_DEV(x)
Default SPI device access macro.
Definition: spi.h:86
PORT_A
@ PORT_A
port A
Definition: periph_cpu.h:36
sx127x_params_t
SX127X hardware and global parameters.
Definition: sx127x.h:215
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
sx127x_params
static const sx127x_params_t sx127x_params[]
Board specific SX127X configuration.
Definition: sx127x_params.h:31
sx127x.h
Public interface for SX127X driver.
PORT_B
@ PORT_B
port B
Definition: periph_cpu.h:37