Search found 1 match
- 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: 8031
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...