This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using NRF_MODULE_ENABLED in Eclipse

I am using Eclipse for developing nRF52 software with SDK 13. Eclipse works great in indexing the SDK files and lets me move around quickly in the codebase. But I am searching for a way to let Eclipse create an index of all the library files. Right now Eclipse will not "see" the code in for example fds.c, as it starts with

#if NRF_MODULE_ENABLED(FDS)

I have tried defining FDS_ENABLED in the Eclipse project but I think it doesn't understand this special define construct:

#define NRF_MODULE_ENABLED(module) \
((defined(module ## _ENABLED) && (module ## _ENABLED)) ? 1 : 0)

Do you have any suggestions on this? My goal is to have all the libraries enabled at once so that I can let Eclipse parse through them.

Related