Adding I2C-TWI EEPROM access, to existing SPI access

We do have an eeprom accessed over the SPI, and works well.

Need to add an option to access also the I2C eeprom.

Adding to the project nrf_drv_twi,c, nrfx_twi.c, nrfx_twim.c - do I need to use both nrfx_twi.c and nrfx_twim.c?

During compilation somehow defines are not picking up from the sdk_config.h

After adding defines from sdk_config.c directly into modules it compiles, but linker combines interrupts of the SPI/TWI, creating multiple defined objects with SPI/TWI in the interrupt service name.

According to the instances, looks, if I use SPI0, I cannot use TWI0, only TWI1.
Could those peripherals selected dynamically, to use SPI0 and TWI0 one at a time?

Parents Reply Children
No Data
Related