Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRFX driver query.

Trying to port some SPI code to the Release 15 NRFX API and seeing an error from  nrfx_spi.h, line 82

/** @brief Macro for creating an instance of the SPI master driver. */
#define NRFX_SPI_INSTANCE(id) \
{ \
.p_reg = NRFX_CONCAT_2(NRF_SPI, id), \
.drv_inst_idx = NRFX_CONCAT_3(NRFX_SPI, id, _INST_IDX), \
}

the error suggests that NRFX_SPI in the CONCAT_3 parameter should now be NRFX_SPIM

..... and making this change seems to resolve the error. 

Of course I might have something wrong elsewhere causing this but it would be good to have this confirmed.

Related