mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-28 15:22:55 +00:00
Custom xPortInIsrContext() for RP2xx0
This commit is contained in:
parent
42bbbaa72b
commit
b0ea51af32
@ -150,4 +150,5 @@
|
||||
#define USE_SEGGER
|
||||
#endif
|
||||
|
||||
// Detect if running in ISR context (ARM Cortex-M4)
|
||||
#define xPortInIsrContext() ((SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) == 0 ? pdFALSE : pdTRUE)
|
||||
|
||||
@ -36,3 +36,6 @@
|
||||
#elif defined(PRIVATE_HW)
|
||||
#define HW_VENDOR meshtastic_HardwareModel_PRIVATE_HW
|
||||
#endif
|
||||
|
||||
// Detect if running in ISR context (ARM Cortex-M33 / RISC-V)
|
||||
#define xPortInIsrContext() (__get_current_exception() == 0 ? pdFALSE : pdTRUE)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user