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.

MSPM0G3507: M0 Driverlib disables INENA when changing Pull-Up/Down resistor

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

When changing a digital GPIO pull-up/down resistor using DL_GPIO_setDigitalInternalResistor(), why does the M0 Driverlib clear the INENA (Input Enable Control Selection) bit in the PINCMx register? Is this a mistake or was this done on purpose?

I couldn't figure out why my GPIO pin stopped working after changing the resistor setting. After some experimenting, it was because INENA was disabled when changing the resistor value. And apparently, INENA must be enabled if you want to poll the pin.

Oddly enough, INENA is not cleared when using the DL_GPIO_setAnalogInternalResistor() function. (Although, using the "Analog" version of this function does change the PC (pin connect) setting, which is why I'm guessing we have both functions.)

Thanks Much,
Scott