The NRF52 product spec suggests: "The input buffer of a GPIO pin can be disconnected from the pin to enable power savings"
I've found that gpio.h provides the function: nrf_gpio_input_disconnect(pin)
However this function doesn't appear to change the power consumption state of my button (which continually draws 250uA when connected to GND).
If I instead use: nrf_gpio_cfg_output(pin)
I get the desired power savings.
Q1. Not sure what "else" is required (or set) to properly disconnect this input when not needed. Could you advise of the proper way to "disconnect" an input that is configured for GPIOTE?
Q2. What is the proper way then, to connect the input and resume GPIOTE sense functionality?
I am using the S132 5.0 softdevice, and SDK 14.