I need to turn on and off one pin around every 100 us. Time between must be 1 cycle (couple of ns) and can't be interrupted at any circumstances. Without a softdevice I disable interrupts like this:
__disable_irq();
GPIO_PIN_ON;
__NOP();
GPIO_PIN_OFF;
__enable_irq();
Must I use some other method when I will be using softdevice? The exact frequency is not so important but the pin can't be left turned on for more then one cycle.