Hi Team,
I'm a little confuse regarding the legacy vs nrfx new drivers. From the documents, the majority legacy nrf is aliased to nrfx drivers via macros in the headers. To use nrfx module, I would need to enable that nrfx module in sdk_config.h I tried to add a timer module to ble_app_hrs_freertos_pca10056_s140 with nrfx timer0 but it didn't seem to work.
#define NRFX_TIMER_ENABLED 1
#define NRFX_TIMER0_ENABLED 1
But those defines are checked in
nRF5_SDK_17.1.0_ddde560/modules/nrfx/drivers/include/nrfx_timer.h
Somehow, if when I enable legacy TIMER0_ENABLED 1 then it would work. My intention is to use nrfx, yet enabling nrfx in sdk_config.h doesn't work but enabling the legacy TIMER0_ENABLED in sdk_config.h works. I wonder why. The sdk_config.h from example ble_app_hrs_freertos_pca10056_s140 has both legacy and nrfx, but enabling nrfx doesn't do anything. This applied to PWM instance as well. Do you know why? Thanks