Other Parts Discussed in Thread: SYSBIOS
I can't seem to get the internal pull-ups working. I perform a pin mux, then set the direction, however when I run the code the pin that I am expecting to be pulled up remains at the value of 0 after a restart. The pin is not connected to anything.
I use PinMuxConfig from plat_mux.c and these are the settings:
{ PIN_GPMC_AD0 , PIN_MODE(7) , (PIN_PULL_TYPE_SEL | PIN_RX_ACTIVE) & (~PIN_PULL_UD_EN)}
And then I set the direction:
GPIODirModeSet(SOC_GPIO_1_REGS, 0, GPIO_DIR_INPUT);
To read the pin:
GPIOPinRead(SOC_GPIO_1_REGS, 0))
One more thing. If I connect the pin to logic high, read it, and then disconnect it and read the pin, the pin value stays at 1.