#define APP_APPL_CLOCK_FREQ 32 //hz
config.prescaler = 3; //resulting freq= 8192 hz.
err_code = nrf_drv_rtc_init(&m_rtc, &config, NULL);
APP_ERROR_CHECK(err_code);
ALTERNATIVE SOLUTIONS:
1. Customize Noridic's softdevice code inside the nrfx_rtc.c module. OPINION - DUMB. Makes codebase very complex. Nordic should address this, not me.
2. Use a bare metal solution where I setup the RTC2 counter independent of the softdevice libarary functions. OPINION - DUMB. There may be conflicts between softdevice operations and my custom code.
NO GOOD SOLUTIONS... SO WHERE DOES THIS LEAVE ME?
Ken Huebner
Software Engineer
Huebner Design