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/CC1312R: How to configure the gpio pin to default state after GPIO_setConfig(PIN, GPIO_CFG_INPUT);

Part Number: CC1312R

Tool/software: Code Composer Studio

Hi,

I tried GPIOCC26xx_release(PIN) and found that it could not  configure the gpio pin to default state from previous GPIO_setConfig(PIN, GPIO_CFG_INPUT)

May I know what mode is a pin that does not give any setting?

I'm doing power saving test.

Thanks.

  • Hi Chris,

    From the  TRM 13.5:

    By default, the I/O driver (output) and input buffer (input) are disabled (tri-state mode) at power on or reset, and thus the I/O pin can safely be left unconnected (floating).

    Therefore, the default state of any I/O pin is as described above. Note that default configurations can be overriden in the Board file, under the corresponding GPIO/PIN configuration (depending which driver you use).