mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
638 stars 208 forks source link

Adds an interface to change the SPI port. #880

Closed PontusO closed 2 years ago

PontusO commented 2 years ago

This PR adds a method for the application programmer to change the default SPI interface used by the HAL layer. In order not to interfere with existing source code it defaults to SPI (same as the currently hard coded SPI interface) and by using the hal_set_spi() method the programmer can now change the used SPI interface. This must be called before os_init().

PontusO commented 2 years ago

PR not valid anymore.