diff --git a/os/common/ports/ARMv6-M-RP2/chcore.h b/os/common/ports/ARMv6-M-RP2/chcore.h index 0971905aa..91066c507 100644 --- a/os/common/ports/ARMv6-M-RP2/chcore.h +++ b/os/common/ports/ARMv6-M-RP2/chcore.h @@ -267,9 +267,12 @@ #define PORT_INFO "Preemption through PendSV (SMP)" #endif #else +#if (CORTEX_ALTERNATE_SWITCH == FALSE) || defined(__DOXYGEN__) #define PORT_INFO "Preemption through NMI" +#else #define PORT_INFO "Preemption through PendSV" #endif +#endif /** @} */ /**