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

boards/feather-m0: sx127x params only valid for lora vairiant

In the feather-m0 board the sx127x pin parameters are hardcoded for the
feather-m0-lora variant, but this is not compatible with other
configurations.

For example in the feather-m0 adalogger PA06 and PA08 are used for the
SD card. When combined with the RFM95W FeatherWing the IRQ/CS/RST pins
must be wired, and then the sx127x pins must be configured to match the
wiring (which will be necessarily different from the lora variant
configuration).
This commit is contained in:
J. David Ibáñez 2022-01-27 11:29:40 +01:00
parent 99d245f538
commit ffb49ad622

View File

@ -59,9 +59,11 @@ extern "C" {
* @{
**/
#define SX127X_PARAM_SPI SPI_DEV(0)
#if defined(BOARD_FEATHER_M0_LORA)
#define SX127X_PARAM_SPI_NSS GPIO_PIN(PA, 6)
#define SX127X_PARAM_RESET GPIO_PIN(PA, 8)
#define SX127X_PARAM_DIO0 GPIO_PIN(PA, 9)
#endif
#define SX127X_PARAM_DIO1 GPIO_UNDEF
#define SX127X_PARAM_DIO2 GPIO_UNDEF
#define SX127X_PARAM_DIO3 GPIO_UNDEF