Chat freely about anything...

User avatar
By dalbert
#76285 I have two devices sharing the HSPI bus. They are both interrupt driven (interrupt drives a GPIO pin) and may also be accessed from the user context. What is the preferred/proper way to disable interrupts (e.g. ETS_GPIO_INTR_DISABLE()) in a way that can be nested so that user-context code can safely access the shared resources?

I'm used to a function that disables interrupts and returns the prior interrupt state that you restore when you exit the section. Is there something similar for ESP8266?