I used to develop based on sdk11 in Eclipse, EVERYTHING works fine. But now I am trying the sdk 12.2.0, in the blinky example, "LEDS_NUMBER" couldn't be solved, but the project can be successfully built.
"LEDS_NUMBER" is defined in "pca10040.h", so I guess Eclipse didn't include it. I manually included "pca10040.h", it worked. But I want to know why? I think since the main.c included "board.h" and "board.h" will include"'pca10040.h" automatically, right?
I guess there must be something wrong with Eclipse, could anyone give me some hints to solve this issue?
Update:
I think this post demonstrated the same issue, I followed the answer, it did work. But some source files I imported still have something "couldn't be solved".
For example in "app_timer.c" :
"NRF_RTC1" is defined in "nrf52.h", so this means Eclipse also didn't include "nrf52.h"? And this is just one example, there could be other header files which are not included by Eclipse.
Many thanks.