Custom xPortInIsrContext() for nRF52/RP2xx0

This commit is contained in:
WillyJL
2025-09-24 04:19:11 +02:00
parent 060a129995
commit edb5c0f88e
2 changed files with 7 additions and 1 deletions

View File

@@ -149,3 +149,6 @@
// No serial ports on this board - ONLY use segger in memory console
#define USE_SEGGER
#endif
// Detect if running in ISR context (ARM Cortex-M4)
#define xPortInIsrContext() ((SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) == 0 ? pdFALSE : pdTRUE)