I need to disable interrupts for no more than 5 to 10us in a JNI library as I need to be sure that the GPIO high pulse gets extended by any other tasks.
I found these Linux functions in another driver but I can't seem to find the header file for it in the NDK.
local_irq_save(flags);
local_irq_restore(flags);
Does anyone know the correct functions and header files to disable interrupts?