I am currently trying to connect an accelerometer to my Nordic board, but I am having some issues with #define NRFX_TWI_INSTANCE(id)
.p_twi = NRFX_CONCAT_2(NRF_TWI, id), \
.drv_inst_idx = NRFX_CONCAT_3(NRFX_TWI, id, _INST_IDX), \
With these two lines, I am getting the errors
and
error: 'nrf_drv_twi_t' has no member named 'drv_inst_idx';
error: 'nrf_drv_twi_t' has no member named 'p_twi'
I am very new to using the board so apologies if I'm leaving out way too much information. I'm not sure what is relevant and what is not.