1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/nz2-sc151: add inAir9 sx1276 LoRa module configuration

This commit is contained in:
fjmolinas 2017-07-10 04:46:51 -04:00
parent 4e430a9af7
commit 6aeb124333

View File

@ -0,0 +1,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 */
/** @} */