I have code that uses two GPIOs to program an NRF51822 via SWD mode. This code all works fine and suceeds in programming the device.
What I would like to do is get the NRF51822 to exit SWD mode, returning the pins to their previous function (eg. RESET).
Is there any way to do that?