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