Irrespective of whether the TWI has to be used as master or slave, the following code should be used to configure the SRU for TWI:
// TWI Data
// TWI Clock
where the value of xx and yy can be 0/1.../14.
The reason is that even the slave may drive the CLK line for clock stretching and DATA line for acknowledgement.