disabling interrupts in ESP32 Ardunio

RussBarr
Posts: 4
Joined: Fri Jan 13, 2017 10:24 pm

disabling interrupts in ESP32 Ardunio

Postby RussBarr » 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?


arilarralde
Posts: 1
Joined: Wed Feb 26, 2020 9:06 pm

Re: disabling interrupts in ESP32 Ardunio

Postby arilarralde » Wed Feb 26, 2020 9:08 pm

Hi, I'm with the same problem. Could you solve it?

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: disabling interrupts in ESP32 Ardunio

Postby ESP_Sprite » Thu Feb 27, 2020 9:19 am

Moved to the Arduino subforum. General advice: if you are thinking of doing something that needs disabling of interrupts, see if there is not a peripheral that can do the job better than the manual bitbanging you're thinking of.

Who is online

Users browsing this forum: Masoud123456 and 119 guests