Shorten time ISR wrappers spend with interrupts disabled by pending task switch using external interrupt controller atomic set register