Getting this issue while building the code I have tried error: 'NRF_DRV_TWI_INSTANCE_0' undeclared here these given options but did not worked out . Please help me with this. I have included all the required driver files also. I am compiling this code in Segger Embedded Studio. I am trying to interface a I2C sensor with NRF52832 dev module.
#define NRF_DRV_TWI_INSTANCE(id) NRF_DRV_TWI_INSTANCE_(id) #define NRF_DRV_TWI_INSTANCE_(id) NRF_DRV_TWI_INSTANCE_ ## id #if NRFX_CHECK(NRFX_TWIM0_ENABLED)
// <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver //========================================================== #ifndef NRFX_TWI_ENABLED #define NRFX_TWI_ENABLED 1 #endif // <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer //========================================================== #ifndef TWI_ENABLED #define TWI_ENABLED 1 #endif // <q> NRFX_TWI0_ENABLED - Enable TWI0 instance #ifndef NRFX_TWI0_ENABLED #define NRFX_TWI0_ENABLED 1 #endif
