Loading...
Searching...
No Matches
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
25extern "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 */
@ PORT_B
port B
Definition periph_cpu.h:48
@ PORT_C
port C
Definition periph_cpu.h:49
@ PORT_A
port A
Definition periph_cpu.h:47
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
static const sx127x_params_t sx127x_params[]
Board specific SX127X configuration.
#define SPI_DEV(x)
Default SPI device access macro.
Definition spi.h:95
SX127X hardware and global parameters.
Definition sx127x.h:215
spi_t spi
SPI device.
Definition sx127x.h:216
Public interface for SX127X driver.