Loading...
Searching...
No Matches
sx127x_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Inria Chile
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "sx127x.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28{
29 {
30 .spi = SPI_DEV(0),
31 .nss_pin = GPIO_PIN(PORT_C, 8),
32 .reset_pin = GPIO_PIN(PORT_A, 9),
33 .dio0_pin = GPIO_PIN(PORT_B, 0),
34 .dio1_pin = GPIO_PIN(PORT_B, 1),
35 .dio2_pin = GPIO_PIN(PORT_C, 6),
36 .dio3_pin = GPIO_PIN(PORT_A, 10)
37 }
38};
39
40#ifdef __cplusplus
41}
42#endif
43
@ PORT_B
port B
Definition periph_cpu.h:44
@ PORT_C
port C
Definition periph_cpu.h:45
@ PORT_A
port A
Definition periph_cpu.h:43
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:42
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:213
Public interface for SX127X driver.