File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 26
26
#include " ets_sys.h"
27
27
#include " user_interface.h"
28
28
#include " core_esp8266_waveform.h"
29
+ #include " interrupts.h"
29
30
30
31
extern " C" {
31
32
@@ -147,7 +148,7 @@ void ICACHE_RAM_ATTR interrupt_handler(void*)
147
148
(handler->mode & 1 ) == !!(levels & (1 << i)))) {
148
149
// to make ISR compatible to Arduino AVR model where interrupts are disabled
149
150
// we disable them before we call the client ISR
150
- uint32_t savedPS = xt_rsil ( 15 ) ; // stop other interrupts
151
+ esp8266::InterruptLock irqLock ; // stop other interrupts
151
152
if (handler->functional )
152
153
{
153
154
ArgStructure* localArg = (ArgStructure*)handler->arg ;
@@ -166,7 +167,6 @@ void ICACHE_RAM_ATTR interrupt_handler(void*)
166
167
{
167
168
handler->fn ();
168
169
}
169
- xt_wsr_ps (savedPS);
170
170
}
171
171
}
172
172
ETS_GPIO_INTR_ENABLE ();
You can’t perform that action at this time.
0 commit comments