Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c81f7 commit a6556a8Copy full SHA for a6556a8
components/freertos/port/esp8266/port.c
@@ -297,9 +297,10 @@ void IRAM_ATTR vPortETSIntrLock(void)
297
if (NMIIrqIsOn == 0) {
298
uint32_t regval = REG_READ(NMI_INT_ENABLE_REG);
299
300
+ vPortEnterCritical();
301
+
302
REG_WRITE(NMI_INT_ENABLE_REG, 0);
303
- vPortEnterCritical();
304
if (!ESP_NMI_IS_CLOSED()) {
305
do {
306
REG_WRITE(INT_ENA_WDEV, WDEV_TSF0_REACH_INT);
@@ -322,9 +323,10 @@ void IRAM_ATTR vPortETSIntrUnlock(void)
322
323
324
REG_WRITE(INT_ENA_WDEV, WDEV_INTEREST_EVENT);
325
}
- vPortExitCritical();
326
327
REG_WRITE(NMI_INT_ENABLE_REG, regval);
328
329
+ vPortExitCritical();
330
331
332
0 commit comments