Hi everyone,
I use the nrf52840 and the SDK 16. I copied the saadc example and I want to modify it and use the RTC instead of the timer as an event for PPI. I've noticed that the example uses the legacy driver instead of the new nrfx implementation. I want to migrate into the nrfx driver. I found this migration guide but it's not clear to me. In the API reference of the PPI allocator there is no function for initialization. Should I use the legacy API nrf_drv_ppi_init()?
Also in the migration guide, there is the following note that I do not understand.
Also, according to the following note should I keep both PPI_ENABLED and NRFX_PPI_ENABLED set to 1?
//========================================================== // <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator //========================================================== #ifndef NRFX_PPI_ENABLED #define NRFX_PPI_ENABLED 1 #endif ..... .... .. // <e> PPI_ENABLED - nrf_drv_ppi - PPI peripheral driver - legacy layer #ifndef PPI_ENABLED #define PPI_ENABLED 1 #endif