Allow configuring maxIRQs (#2401)

This commit is contained in:
Yveaux 2024-09-01 17:44:51 +02:00 committed by GitHub
parent 94c9932417
commit bc7adf42c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,9 @@
#include <map>
// Support nested IRQ disable/re-enable
#ifndef maxIRQs
#define maxIRQs 15
#endif
static uint32_t _irqStackTop[2] = { 0, 0 };
static uint32_t _irqStack[2][maxIRQs];