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
648 stars 212 forks source link

Convert radio drivers to eliminate conditional compiles #971

Open terrillmoore opened 1 month ago

terrillmoore commented 1 month ago

By using static inlines, we can convert the radio driver files radio_sx127x.c and radio_sx_126x.c so that they're always compiled, but then discarded at link time if not used. Similar idea to the security element patch.