This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2650: Switching between SPI and I2C during run-time, shared pins - different functions

Part Number: CC2650

Tool/software: TI-RTOS

I need to communicate with a sensor that can be configured for both I2C and SPI and I need to be able to use both (not at the same time).

I'm using Register Service. Depending on interface ID, I need to talk to the device over I2C or SPI.

I'm using sensortag example project.

A pin MISO_AD0  needss to be an input in SPI mode and an output (to set i2c address bit0) in i2c mode.

How can i do this?