I was looking at samples of code for CC2340 versus the MSPM0 yesterday. In particular I was looking at code samples for the Simple Link approach to reading and writing GPIO and ADC compared to the code for the MSPM0. It looked like the API was quite different where the Simple Link code especially the examples using the RTOS were done at a higher abstraction level.
My question is if there is an approach where I can code once and have it port easily back and forth between the simple link and MSPM0 series CPU?
My second question is why is there such a difference between the two coding styles between the two set of examples? Am I just missing or have not found the higher level library for the MSPM0?
Third question: Is there a version of the driver libraries that works with the same API at least for shared components like ADC, GPIO, Comparators, etc between the two families? If so can you point me to the documentation for this and examples of moving code between these families without having to change the app level code?