Skip to content

Commit 9be537e

Browse files
authored
Move default configNUMBER_OF_CORES definition forward in FreeRTOSConfig.h (#88)
* Move default configNUMBER_OF_CORES definition forward in FreeRTOSConfig.h.
1 parent 4e74560 commit 9be537e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

include/FreeRTOS.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@
8686
#define configUSE_MPU_WRAPPERS_V1 0
8787
#endif
8888

89+
/* Set default value of configNUMBER_OF_CORES to 1 to use single core FreeRTOS. */
90+
#ifndef configNUMBER_OF_CORES
91+
#define configNUMBER_OF_CORES 1
92+
#endif
93+
8994
/* Basic FreeRTOS definitions. */
9095
#include "projdefs.h"
9196

@@ -363,10 +368,6 @@
363368
#define portSOFTWARE_BARRIER()
364369
#endif
365370

366-
#ifndef configNUMBER_OF_CORES
367-
#define configNUMBER_OF_CORES 1
368-
#endif
369-
370371
#ifndef configRUN_MULTIPLE_PRIORITIES
371372
#define configRUN_MULTIPLE_PRIORITIES 0
372373
#endif

portable/ThirdParty/GCC/RP2040/include/portmacro.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@
114114

115115
/* Multi-core */
116116
#define portMAX_CORE_COUNT 2
117-
#ifndef configNUMBER_OF_CORES
118-
#define configNUMBER_OF_CORES 2
119-
#endif
120117

121118
/* Check validity of number of cores specified in config */
122119
#if ( configNUMBER_OF_CORES < 1 || portMAX_CORE_COUNT < configNUMBER_OF_CORES )

0 commit comments

Comments
 (0)