Skip to content

Commit bc7adf4

Browse files
authored
Allow configuring maxIRQs (#2401)
1 parent 94c9932 commit bc7adf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/rp2040/wiring_private.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
#include <map>
2626

2727
// Support nested IRQ disable/re-enable
28+
#ifndef maxIRQs
2829
#define maxIRQs 15
30+
#endif
2931
static uint32_t _irqStackTop[2] = { 0, 0 };
3032
static uint32_t _irqStack[2][maxIRQs];
3133

0 commit comments

Comments
 (0)