Hello
I'm trying to implement a number of different interrupts using the nRF51 DK but I'm having trouble understanding how to use the GPIOTE_IRQHandler function.
Basically, I need one interrupt to sense a pin that will be used for sending the device in and out of sleep mode, and a second interrupt for toggling an LED from a different pin. I've tried looking at the other examples mentioned on Devzone but its not clear to me how to structure the GPIOTE_IRQHandler function and how to use the PORT functionality (since it uses less power apparently).
For example, how would I change the code here to add an additional interrupt to toggle an LED?
Thanks