Skip to content

SPI gpio interrupt on cs pin #45663

Discussion options

You must be logged in to vote

I've change the way I do it and instead of the gpio interrupt handling the spi_device, I make the gpio interrupt increment a given semaphore when the CS pin encounters a falling edge. By doing so, another dedicated thread waiting for the said semaphore can then use the semaphore and start an spi interraction.

This thread can be mark as answered.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Dave-Poissant
Comment options

@ddemelier-ts
Comment options

Answer selected by Dave-Poissant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants