Skip to content

Commit

Permalink
Define configNUMBER_OF_CORES to configNUM_CORES for when defined
Browse files Browse the repository at this point in the history
Improves backwards compatibility with 3rd party SMP ports.
  • Loading branch information
paulbartell committed Feb 2, 2024
1 parent 1c35cb3 commit 8391944
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/FreeRTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 8391944

Please sign in to comment.