Let's create a Library in Apache #NuttX OS
https://github.com/lupyuen/incubator-nuttx/tree/newlibrary/libs
Why create a #NuttX Library? So it's easier to port the #LoRaWAN Driver to NuttX ... Without massive redesign
https://github.com/lupyuen/incubator-nuttx/tree/newlibrary/libs
We pick the simplest #NuttX Library: DSP ... And clone it for SX1262
https://github.com/lupyuen/incubator-nuttx/commit/6596edd6eb47547f41f647e6da1e08d33faacf4f
In our cloned #NuttX Library, change all "libdsp" to "libsx1262" ... Remember to Preserve Case
https://github.com/lupyuen/incubator-nuttx/commit/9fe76d3bca389642e71ac405c8343b280384276d
Update the #NuttX Kconfig in our cloned SX1262 Library
https://github.com/lupyuen/incubator-nuttx/commit/d1ebcebe0dca1de5a9881e66151f2ad1a3af6907
To include our SX1262 Library for the #NuttX Build ... We add it to Directories.mk
https://github.com/lupyuen/incubator-nuttx/commit/8bd31da9abccbcfdd1b9b1ccfd22bd41803ac7f8
Also add our (empty) SX1262 Library to the #NuttX Makefiles: FlatLibs.mk, KernelLibs.mk, ProtectedLibs.mk, LibTargets.mk
https://github.com/lupyuen/incubator-nuttx/commit/b381a99e7512d09d74db4da982826b5e40b2606a
Our SX1262 Library for #NuttX is empty right now ... But we'll fill in the SX1262 code real soon!
https://github.com/lupyuen/incubator-nuttx/blob/newlibrary/libs/libsx1262/lib_misc.c
Our (empty) SX1262 Library appears in #NuttX Menuconfig
https://github.com/lupyuen/incubator-nuttx/tree/newlibrary/libs/libsx1262