This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51 SDK Version #define location?

Is the nRF51 SDK version number exported as a preprocessor #define in any of the SDK header files?

Because the SDKs are not backwards compatible to different revisions of nRF51 chips, and I need to support chips purchased from different batches, I find myself having to compile the same code base with multiple SDK versions.

I have a mostly-working compatibility header file that fixes up gratuitous changes, like "event" changing spelling to "evt" throughout the API. But for some of the changes, I would really like to be able to test against SDK versions directly in the preprocessor.

The obvious place seems to be sdk/sdk_common.h, but I don't see anything in there. I grepped the include tree for the version number and didn't find anything either.

Where is the SDK version stored at?

Parents Reply Children
No Data
Related