Hi!
I need to include a specific .h for each board. How can I know, in compiling time, which board is being compiled?
Something like:
#ifdef BOARD_A #include "board-a.h" #endif
Thanks!
Pedro.
Hi!
I need to include a specific .h for each board. How can I know, in compiling time, which board is being compiled?
Something like:
#ifdef BOARD_A #include "board-a.h" #endif
Thanks!
Pedro.
If you are using segger embedded studio as your IDE then you have to go to project options there you select the common setting from the drop down menu, usually it's in release, then you go to preprocessor settings and there you will find something like definitions you double click on that and you will see BOARD_PCA10056 if the example is made for that. There you can write BOARD_CUSTOM and then in the boards.h file you can see which board is highlighted.
Hi!
I'm using NCS v2.0.2 with Zephyr and Visual Studio Code. How can be done with this SDK?
Thanks!
Hi!
I'm using NCS v2.0.2 with Zephyr and Visual Studio Code. How can be done with this SDK?
Thanks!