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

Detect in my SES source code using a #define whether compiling for the nRF9160 DK or the Thingy91

Shalom!

 I want my code example to be able to run on both the nRF9160 and the Thingy91. I ran the SES Open nRF project menu twice and have two separate build folders under my project with different SES project files. I can't find in the UI or the files how I can in my common code use a #ifdef to differentiate between the builds. When I set a Project solution build macro, it is undetectable by my code.

 In my sample code, I use UART_0 serial port and blink a LED.

Is UART_0 used on both boards?

Thanks David

Parents Reply Children
No Data
Related