From 83919448f85c642d297319517ce3ddb86340b280 Mon Sep 17 00:00:00 2001 From: Paul Bartell Date: Fri, 2 Feb 2024 14:09:51 -0800 Subject: [PATCH] Define configNUMBER_OF_CORES to configNUM_CORES for when defined Improves backwards compatibility with 3rd party SMP ports. --- include/FreeRTOS.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/FreeRTOS.h b/include/FreeRTOS.h index a23b671699f..175e4fc94b8 100644 --- a/include/FreeRTOS.h +++ b/include/FreeRTOS.h @@ -93,7 +93,11 @@ /* Set default value of configNUMBER_OF_CORES to 1 to use single core FreeRTOS. */ #ifndef configNUMBER_OF_CORES - #define configNUMBER_OF_CORES 1 + #ifdef configNUM_CORES + #define configNUMBER_OF_CORES configNUM_CORES + #else + #define configNUMBER_OF_CORES 1 + #endif #endif /* Basic FreeRTOS definitions. */