I am working on a new development board that uses the Insight SIP ISP4520.
The ISP4520 is basically a Nordic nRF52832 and a Semtech SX126x put together into one SoC. If the prototypes are working well, the boards will be on sale from early 2020 on.
I tried to use the existing nRF52 package (the Adafruit version), but I have problems, because neither the bootloader nor the pin-definitions of the existing variants work well with the ISP4520.
I created my own package that fixes all the issues that I had and I can load and use it in ArduinoIDE by adding it to the Additional Boards Manager URLs.
But I don’t want to use ArduinoIDE, as I do all my dev projects with PlatformIO.
I know how I create a custom platform to PlatformIO, but I struggle to define a custom package. It seems that all I can use are the packages on https://bintray.com/platformio/dl-packages.
Any way to create a custom package with a custom platform, so that I can use PlatformIO for my new board? I tried to find out how the platforms load the packages, but get stuck at
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoadafruitnrf52")
How can I replace that to load a custom package from Github?