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

Pure NRFX RTC code - how to?

Hi,

I'm trying to adopt my nRF52832 projects to the nRF5 SDK version 15.2.0 and the NRFX drivers framework. I'm using a short app_config.h with NRFX_RTC_ENABLED and NRFX_RTC0_ENABLED only. Unfortunately, it won't work because it's locked on the legacy stuff from the integration/nrfx/legacy/apply_old_config.h. Particularly, the following chunk of defs in the apply_old_config.h are enforced to redefine my NRFX_RTC0_ENABLED because sdk_config.h has the default RTC_ENABLED value (defined as 0):

#if defined(RTC_ENABLED)

#undef NRFX_RTC_ENABLED
#define NRFX_RTC_ENABLED  RTC_ENABLED

#if defined(RTC0_ENABLED)
#undef NRFX_RTC0_ENABLED
#define NRFX_RTC0_ENABLED  RTC0_ENABLED
...

What would be the recommended way to enable the pure NRFX RTC without legacy code involved?

Thanks!

Parents Reply Children
Related