Hi,
I am trying to compile an old project.
I am using SEGGER_Embedded_Studio_Nordic_v568_win_x64 with nRF5_SDK_17.0.2
I am getting an error message for the following line;
static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(SPI_INSTANCE);
And SPI_INSTANCE is zero.
Here below the error message;
implicit declaration of function 'NRF_DRV_SPI_INSTANCE' is invalid in C99 [-Wimplicit-function-declaration]
initializing 'const nrf_drv_spi_t' with an expression of incompatible type 'int'
Here below the nrf_drv_spi_t definition;
typedef struct
{
uint8_t inst_idx;
union
{
#ifdef SPIM_PRESENT
nrfx_spim_t spim;
#endif
#ifdef SPI_PRESENT
nrfx_spi_t spi;
#endif
} u;
bool use_easy_dma;
} nrf_drv_spi_t;
I looked everywhere and could not find the definition of NRF_DRV_SPI_INSTANCE() macro.
Where can I get it?