Search found 1 match

by Franklin.e
Fri Feb 19, 2021 9:26 am
Forum: ESP-IDF
Topic: Is it possible to run SPI communication in ISR of GPIO?
Replies: 4
Views: 7928

Re: Is it possible to run SPI communication in ISR of GPIO?

There are very few things you can safely call in an ISR, as it runs outside of the task context. Most notably, FreeRTOS functions ending in FromISR can be called, and the standard way of dealing with this is to have a semaphore or queue plus a thread blocking on that. The ISR can then put something...