Can anyone tell me how to interface interrupts of Beagle bone black using pyhton or C.
by writing a kernel driver that implements poll(), raises signals or provides an ioctl to the python or C application.
@Matthias_Welwarsky There’s no need to write a kernel driver. Just use the /sys/class/gpio/ interface. See http://lxr.free-electrons.com/source/Documentation/gpio.txt#L621 and especially what you can do with the /sys/class/gpio//value file, as explained at http://lxr.free-electrons.com/source/Documentation/gpio.txt#L695.
And what do you do for non-GPIO interrupts?
For non-GPIO interrupts, a kernel driver is obviously needed, but the real answer depends on which device exactly @Chayan_Sharma wants to drive.
i’m trying to get full modem handshaking using UART4 or 5 since the expansion header provides RTS/CTS i’m using other GPIO’s to interface the remaining pins (RI/DTS/DTR) now what i want is that when RI (ringing indicator) comes i will start communicating using ISR.
Since i am newbie to kernel programming i dont have any idea about how do i use poll() class
Can u give me some more references on how to poll to a file …
@Thomas_Petazzoni Wow, WHAT a useful document! Thanks for posting it, Thomas!