I came across an HX711 driver in one of the Linux github sources so I was able to build this into the Android kernel this morning. I now just need to figure out how to use this and read the data from it.
On Thursday, 18 June 2020 21:03:41 UTC+7, Glenn Kasten wrote:
Android native code, including JNI, runs in user mode and has no more permissions or capabilities than managed code (Java, Kotlin).
You'll need to write a device driver that runs in kernel mode.
On Thursday, June 18, 2020 at 1:27:40 AM UTC-7, Dave McLaughlin wrote:
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.
Does anyone know the correct functions and header files to disable interrupts?