Hello,
We're creating a new design with the nRF518122 as a TWI master to two separate I2C busses. No SPI devices of any kind, so I don't think there is a resource sharing issue. The reference manual indicates that the part has two separate TWI instances, but looking through the Nordic-provided twi_hw_master.c driver file, it's clear the driver code is hard-coded to use TWI1 as the only master, and there is no support in the driver for operating both masters simultaneously. Some questions:
- Is there any reason why the driver was written to use TWI1 specifically? Why not TWI0?
- Any reason any I couldn't just make a separate copy of twi_hw_master.c for the TWI0 instance?
Thanks!