we develop the TWI I2C interface, already setting the Enable TWIM driver in the Project Setting. but.
the code :
const nrf_drv_twi_t m_twi_instance = NRF_DRV_TWI_INSTANCE(0);
const nrf_drv_twi_config_t twi_mpu_config = {
.scl = MPU_TWI_SCL_PIN,
.sda = MPU_TWI_SDA_PIN,
.frequency = NRF_TWI_FREQ_400K,
.interrupt_priority = APP_IRQ_PRIORITY_HIGHEST,
.clear_bus_init = false
};
the error is :
2> Compiling ‘main.c’
2> ../src/main.c:143:8: error: unknown type name 'nrf_drv_twi_t'
Setting is :
How we can enable the nrf_drv_twi legacy driver in this project ?