disabling interrupts in ESP32 Ardunio
Posted: Tue Jul 11, 2017 12:15 am
I am trying to use Neopixels on the ESP32. I need to lock out all interrupts during the high period too insure accurate timing.
It look like the Ardunio function nointerrupts does not work.
I have tried to use different methods to do this but have ran into issues or they did nothing
noInterrupts();
XTOS_DISABLE_ALL_INTERUPTS;
intEnable_saved = XTHAL_GET_INTENABLE();
intEnable_saved = getIntEnable();
XTHAL_SET_INTENABLE(zero);
setIntEnable(zero);
How can I disable and enable all interrupts during a critical section in Ardunio IDE if noInterrupts() and interrupts() don't work?
It look like the Ardunio function nointerrupts does not work.
I have tried to use different methods to do this but have ran into issues or they did nothing
noInterrupts();
XTOS_DISABLE_ALL_INTERUPTS;
intEnable_saved = XTHAL_GET_INTENABLE();
intEnable_saved = getIntEnable();
XTHAL_SET_INTENABLE(zero);
setIntEnable(zero);
How can I disable and enable all interrupts during a critical section in Ardunio IDE if noInterrupts() and interrupts() don't work?