Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 55d608e

Browse filesBrowse files
Adds noInterrupt() and interrupt() functionality (espressif#7226)
* Adds noInterrupt() and interrupt() functionality * Adds sei/cli Adds back sei()/cli() macros Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
1 parent dca1a1e commit 55d608e
Copy full SHA for 55d608e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎cores/esp32/Arduino.h

Copy file name to clipboardExpand all lines: cores/esp32/Arduino.h
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@
7979
#define degrees(rad) ((rad)*RAD_TO_DEG)
8080
#define sq(x) ((x)*(x))
8181

82-
#define sei()
83-
#define cli()
82+
// ESP32xx runs FreeRTOS... disabling interrupts can lead to issues, such as Watchdog Timeout
83+
#define sei() portENABLE_INTERRUPTS()
84+
#define cli() portDISABLE_INTERRUPTS()
8485
#define interrupts() sei()
8586
#define noInterrupts() cli()
8687

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.