Define configNUMBER_OF_CORES to configNUM_CORES for when defined

Improves backwards compatibility with 3rd party SMP ports.
This commit is contained in:
Paul Bartell 2024-02-02 14:09:51 -08:00
parent 1c35cb3bc9
commit 9f580c12c9

View file

@ -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. */