If I want to share the Flexcomm0 for SPI and I2C @rtos. (It needs re-initial the pin define)
Because our system have many I2C device(same slave address).
Do you recommend this design?
It is possible to share the Flexcomm interface, but as you mentioned you will have to reconfigure the interface to switch between protocols. It will depend on the application if this can affect the desired performance.
Best regards, Daniel.