Skip to content

Commit

Permalink
Move default configNUMBER_OF_CORES definition forward in FreeRTOSConf…
Browse files Browse the repository at this point in the history
…ig.h (#88)

* Move default configNUMBER_OF_CORES definition forward in FreeRTOSConfig.h.
  • Loading branch information
chinglee-iot authored Jul 24, 2023
1 parent 4e74560 commit 9be537e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 5 additions & 4 deletions include/FreeRTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
#define configUSE_MPU_WRAPPERS_V1 0
#endif

/* Set default value of configNUMBER_OF_CORES to 1 to use single core FreeRTOS. */
#ifndef configNUMBER_OF_CORES
#define configNUMBER_OF_CORES 1
#endif

/* Basic FreeRTOS definitions. */
#include "projdefs.h"

Expand Down Expand Up @@ -363,10 +368,6 @@
#define portSOFTWARE_BARRIER()
#endif

#ifndef configNUMBER_OF_CORES
#define configNUMBER_OF_CORES 1
#endif

#ifndef configRUN_MULTIPLE_PRIORITIES
#define configRUN_MULTIPLE_PRIORITIES 0
#endif
Expand Down
3 changes: 0 additions & 3 deletions portable/ThirdParty/GCC/RP2040/include/portmacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@

/* Multi-core */
#define portMAX_CORE_COUNT 2
#ifndef configNUMBER_OF_CORES
#define configNUMBER_OF_CORES 2
#endif

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

0 comments on commit 9be537e

Please sign in to comment.