The right way to implement an event-driven application - SPI SLAVE Hello everyone, in the last few weeks I have been developing a solution in esp32c6 that communicates with another mcu from an SPI, the application I am developing is an spi slave. Up until now, my application has been executing reads inside a while(1) (I know, this mode is very dummy) and when I receive n_bytes > 0 I have been handling this. Now I need to improve my solution so that my application stays in "sleep" and when an spi interruption occurs it can continue with the execution. I am having difficulty understanding the right way to do this in Nuttx. Has anyone done something similar or have tips on where I should go next?
Regards! -- *Felipe Moura de Oliveira* *Universidade Federal de Minas Gerais* Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0> <https://twitter.com/FelipeMOliveir?lang=pt-br>