I wanted to try to test some of the nrfx_saadc v2 features in a project I'm developing. I downloaded and ran a couple of the examples from GitHub and they run fine on a nRF52 DK board. However I was unable to determine just where NRFX_SAADC_API_V2 was defined. To invoke the V2 features in nrfx_saadc.c in my own project, I finally resorted to making a local copy of nrfx_saadc.h and adding a define for NRFX_SAADC_API_V2 to it. This worked OK for my project, but I'm not sure if it's the "correct" way to switch to the V2 driver.
Please advise on just how NRFX_SAADC_API_V2 is supposed to be defined.
Thanks,
Max
BTW Kudos for putting the ADC examples out on GitHub. Looks like some good developments.