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?