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

Where is the legacy SPIM driver in SDK 15.3.0?

I find the combination of both EasyDMA and non-EasyDMA, plus nrfx and legacy driver in SDK 15.3.0 quite confusing. Where is the implementation of the legacy SPIM (EasyDMA) driver?

My client code calls nrf_drv_spi_init(). Searching for implementations of that in the SDK, I find the one in integration/nrfx/legacy/nrf_drv_spi.c, which certainly sounds from the path like the legacy one. But it more or less immediately calls nrfx_spim_init() (note the X there). That's implemented in modules/nrfx/drivers/src/nrfx_spim.c, which is the NRFX implementation.

Related