Skip to content

Is the receive irq handler reentrant? what can I do there #1469

Answered by jgromes
jamcinnes2 asked this question in Q&A
Discussion options

You must be logged in to vote

On RPi, interrupts are emulated using the lgpio library GPIO alert, which ultimately calls the user-provided function (setFlag in the examples) as a callback. I think that on RPi, it should be possible to perform more complex things from this callback, like sending data over the SPI.

However, as a general rule, I would suggest avoiding this. It might not always be possible, and there's usually no reason to these things anyway, ISRs should be fast.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jamcinnes2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants