Hi, is it possible to check the current configuration of a GPIO pin? I mean if the pin is currently configured as input or output. Next I need to uninitialize it and reinitialize in the opposite configuration. Can someone help me?
Hi, is it possible to check the current configuration of a GPIO pin? I mean if the pin is currently configured as input or output. Next I need to uninitialize it and reinitialize in the opposite configuration. Can someone help me?
You can use nrf_bitmask_bit_is_set on the GPIOs DIR register.