Hello,
I will have an open processor pin on my custom board. This pin will be an input and I want to configure it to have an internal pull up resistor to avoid leaving it floating.
I set the pin as in input in the pinmux.c using the following code:
gpio_pin_config_t sw_config = {kGPIO_DigitalInput, 0, kGPIO_NoIntmode};
GPIO_PinInit(GPIO2, 05, &sw_config);
Then I tried to adjust the IOMUXC, but I did not see any changes when probing the pin:
#define IOMUXC_GPIO_B0_05_GPIO2_IO05 0x401F8150U, 0x5U, 0, 0, 0x401F8340U
- How can I configure the pin as an input and have an internal pull up resistor?
- If the pin is set up with an internal pull up and I probe that pin, will I see it as high? And low when pulled down?