You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/04/02 09:15:41 UTC

[GitHub] sdalu opened a new issue #985: Building Lora with SPI > 0

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:
users@infra.apache.org


With regards,
Apache Git Services

Re: [GitHub] sdalu opened a new issue #985: Building Lora with SPI > 0

Posted by will sanfilippo <wi...@runtime.io>.
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 <gi...@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:
> users@infra.apache.org
> 
> 
> With regards,
> Apache Git Services