on the nrf52832 I am configuring pin 10 as an input. There is either 0 or 3.1V on the pin depending on whether a charger is connected to the board.
When I read the state of the ping with nrf_gpio_pin_read(), the value is always 0, even when I have probed the chip and see the 3.1V is there.
I see other reports of similar problems but they all seem related to switching between input and output on the pin, which I am not doing.
I am configuring the port as input with nrf_gpio_config_input.
Is there some other configuration besides the nrf_cpio_cfg_input() that is needed to make the nrf_gpio_pin_read() collect good values?