Freertos SMP: fix wrong no affinity value in kconfig

This commit is contained in:
Marius Vikhammer 2022-05-23 16:46:37 +08:00
parent d485f6add8
commit 15684fb5a0
2 changed files with 3 additions and 1 deletions

View File

@ -474,7 +474,8 @@ menu "FreeRTOS"
# Intended to be used as a constant from other Kconfig files.
# Value is (32-bit) INT_MAX.
hex
default 0x7FFFFFFF
default 0x7FFFFFFF if !FREERTOS_SMP
default 0xFFFFFFFF if FREERTOS_SMP
config FREERTOS_SUPPORT_STATIC_ALLOCATION
# Always enabled. Kconfig option preserved for compatibility with code which checked for

View File

@ -246,6 +246,7 @@ const DRAM_ATTR uint8_t FreeRTOS_openocd_params[ESP_FREERTOS_DEBUG_TABLE_END] =
* ------------------------------------------------------------------------------------------------------------------ */
#if CONFIG_FREERTOS_SMP
_Static_assert(tskNO_AFFINITY == CONFIG_FREERTOS_NO_AFFINITY, "CONFIG_FREERTOS_NO_AFFINITY must be the same as tskNO_AFFINITY");
BaseType_t xTaskCreatePinnedToCore( TaskFunction_t pxTaskCode,
const char * const pcName,