I think this is just some legacy code. At least, I cannot see any restrictions in the code that would necessitate spi 0 being used. I do seem to recall there being a reason for this but as far as I can tell it is no longer needed. > On Apr 2, 2018, at 2:15 AM, GitBox <g...@apache.org> wrote: > > sdalu opened a new issue #985: Building Lora with SPI > 0 > URL: https://github.com/apache/mynewt-core/issues/985 > > > It's not possible to build Lora with SPI1, due to the following code in > `sx1276-board.h`. Is there a specific reason for this restriction? > > ~~~c > #if RADIO_SPI_IDX == 0 > #define RADIO_NSS MYNEWT_VAL(SX1276_SPI_CS_PIN) > #else > #error Invalid SX1276_SPI_IDX value > #endif > ~~~ > > ---------------------------------------------------------------- > This is an automated message from the Apache Git Service. > To respond to the message, please log on GitHub and use the > URL above to go to the specific comment. > > For queries about this service, please contact Infrastructure at: > us...@infra.apache.org > > > With regards, > Apache Git Services