I have two problems.
I need to use gpio interrupts on the Colibir IMX6ULL WB. I can enable the interrupt on a GPIO pin using the standard “echo” instructions and the interrupt appears in the /proc/interrupts list and the interrupt counter advances as expected. I now need to process the interrupt in C. There should be a reference to “request_irq” in the follwoing library, but there isnt.
Also I need to synchronize data between the interrupt and the user program. I can do this with spinlocks or atomic variables. But there is no reference to the libraries
Simply i want to count the interrupts, but when the user programs reads the count, I want to reset the counter , but dont want any interrupts to be lost. I could do this with “atomic_inc” from the interrupt and “atomic_dec_and_test” from the user program.
- how can I setup interrupts or access “request_irq()”
- how can I access atomic variables and spinlocks.
If these are not part of the standard image, how can I add them either via opkg or to my custom image.