Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

apply_old_config.h issue

Hi,

In apply_old_config.h ,here is the code:

for example:

#if defined(SYSTICK_ENABLED)

#undef NRFX_SYSTICK_ENABLED
#define NRFX_SYSTICK_ENABLED  SYSTICK_ENABLED

#endif // defined(SYSTICK_ENABLED)

If I set SYSTICK_ENABLED =0 in sdk_config,here will overwrite the macro define because #if defined(SYSTICK_ENABLED) is true.

This makes me very confused,maybe here can change to #if defined(SYSTICK_ENABLED ) && SYSTICK_ENABLED  ?

Parents
  • Hello, I can confirm that this issue isn't resolved still in SDK17 which means that if we don't want to use old style configuration by having the following

    sdk_config.h

    #define PPI_ENABLED 0

    #define NRFX_PPI_ENABLED 1

    The apply_old_config.h redefines NRFX_PPI_ENABLED as below:

    #if defined(PPI_ENABLED)

    #undef NRFX_PPI_ENABLED
    #define NRFX_PPI_ENABLED PPI_ENABLED

Reply
  • Hello, I can confirm that this issue isn't resolved still in SDK17 which means that if we don't want to use old style configuration by having the following

    sdk_config.h

    #define PPI_ENABLED 0

    #define NRFX_PPI_ENABLED 1

    The apply_old_config.h redefines NRFX_PPI_ENABLED as below:

    #if defined(PPI_ENABLED)

    #undef NRFX_PPI_ENABLED
    #define NRFX_PPI_ENABLED PPI_ENABLED

Children
Related