From 92e8aeb73c9465d697dfcb8d3059df926e33fea7 Mon Sep 17 00:00:00 2001 From: cinsights Date: Thu, 15 Apr 2021 13:46:49 +0000 Subject: [PATCH] Fix PORT_INFO define for non-SMP mode git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14193 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/common/ports/ARMv6-M-RP2/chcore.h | 3 +++ 1 file changed, 3 insertions(+) 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 /** @} */ /**