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 
9 #pragma once
10 
21 #include "sx127x.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 {
32  {
33  .spi = SPI_DEV(0),
34  .nss_pin = GPIO_PIN(PORT_C, 8),
35  .reset_pin = GPIO_PIN(PORT_A, 9),
36  .dio0_pin = GPIO_PIN(PORT_B, 0),
37  .dio1_pin = GPIO_PIN(PORT_B, 1),
38  .dio2_pin = GPIO_PIN(PORT_C, 6),
39  .dio3_pin = GPIO_PIN(PORT_A, 10)
40  }
41 };
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
@ PORT_B
port B
Definition: periph_cpu.h:47
@ PORT_C
port C
Definition: periph_cpu.h:48
@ PORT_A
port A
Definition: periph_cpu.h:46
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:45
static const sx127x_params_t sx127x_params[]
Board specific SX127X configuration.
Definition: sx127x_params.h:30
#define SPI_DEV(x)
Default SPI device access macro.
Definition: spi.h:95
SX127X hardware and global parameters.
Definition: sx127x.h:213
spi_t spi
SPI device.
Definition: sx127x.h:214
Public interface for SX127X driver.