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.

CC2650: can I change mux at runtime

Part Number: CC2650

I need to change mux from GPIO to SPI at runtime, only when I need to use SPI at certain condition.

Since I do not have enough GPIO, I want to reuse SPI interface with GPIO(LED output).

SPI_MOSI and SPI_CLK as LED output and SPI_CS as LED enable.

mux is set to GPIO at init.

when I need to use SPI, I set mux as SPI.

when SPI_CS is active, LED output will be disabled.