I'm working on a design that requires an adc reading to be taken on a pin that is also used as an interrupt. I've looked at the reference manual but am still confused as to how switching between the two is done.
Initially the device is configured for an interrupt with GPIOTE. Before an ADC reading is taken I disable the profile with app_gpiote_user_disable(), and re-enable it after the readings are done. However after the read I no longer receive interrupts.
What exactly needs done to be able to switch from an interrupt pin to a pin that I can take an ADC reading from, and then back to an interrupt pin when it's finished?