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

changing board header file

Hi

I am using an example project written for pca_10040, I am trying to replace it with pca_10010.

So far, I changed the "Target Device" in the project options and the "Register Definition File"

But, the "boards.h" file always asserts the option: #elif defined(BOARD_PCA10040) . I had to manually replace the command from #include "pca10040.h" to #include "pca10010.h", and the code works correctly and the pca_10010.h file is loaded. But I failed to figure out why #elif defined(BOARD_PCA10040) is executed, although when I searched the whole project for "BOARD_PCA10040", no mention for it is in the code.

Related