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.

CCS/CC1310: reconfigure pin input to output

Part Number: CC1310

Tool/software: Code Composer Studio

Hi All,

I want to change digital pin output mode to inpud mode. I used to bleow code.

For Output:

PIN_Config pinCfg = CC1310DK_7XD_ONEWIRE | PIN_GPIO_OUTPUT_EN | PIN_PUSHPULL |PIN_GPIO_HIGH | PIN_IRQ_DIS;
    PIN_setConfig(pinHandle1w, PIN_BM_OUTPUT_MODE, pinCfg);

For input:

 PIN_Config pinCfg = CC1310DK_7XD_ONEWIRE   | PIN_INPUT_EN | PIN_PULLUP | PIN_HYSTERESIS;
    PIN_setConfig(pinHandle1w, PIN_BM_INPUT_MODE, pinCfg);

But I cant change initial mode of pin. How can I do this?

Best regards