Thank you for your reply.
According to your modification, I2c1 (PIO_6 PIO_7) is used as slave or host. I2c0 (PIO_10 PIO_11) as slave or host, they can communicate with each other. Now I have a light sensor that communicates with JN5189 through the i2c interface. If I use (PIO_10 PIO_11) as the host and the light sensor as the slave, they can communicate with each other. But if I use (PIO_6 PIO_7) as the host and the light sensor as the slave, they cannot communicate with each other (does not read the ack of the slave). This is a strange question, do I need to configure anything else?
Attached is the i2c code. Are there any errors?
Screenshot is the i2c0 as the host can communicate. i2c1 cannot communicate as a host

thank you