Forum > Embedded - ARM

GPIO interrupt code

<< < (2/2)

Swirl:
Maybe it's my misunderstanding but in the examples I always see a "waiting for interrupt".
In my understanding an interrupt is something you do not have to wait(loop) for. E.g. Like a TTimer event. I would like to have a procedure that is called without including a "polling loop".
Is there a way like NMIs I used on the good old Zilog Z80.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---InterruptProc(Sender: Foo);begin  dosomething;end;
Please tell me how to do that or tell me that I am misunderstanding the examples.

Regards,
Mike

Update
As I read here...
https://www.raspberrypi.org/forums/viewtopic.php?t=9207
...a "real" Interrupt would be a part of the kernel and thus it's not available on the pi.
The best way to perform an "interrupt" is a thread. This will be adequate for me.

Navigation

[0] Message Index

[*] Previous page

Go to full version