forked from espressif/esp-idf
fix(freertos/idf/linux): Fix configMAX_PRIORITIES for linux port
Previously the linux port of FreeRTOS set configMAX_PRIORITIES to 7. However, multiple linux POSIX simulator examples will call API that create tasks with priortiies >= 7. This commit fixes the configMAX_PRIORITIES and unifies all ports to have 25 priorities.
This commit is contained in:
@@ -90,6 +90,7 @@
|
|||||||
#endif /* configUSE_TICKLESS_IDLE */
|
#endif /* configUSE_TICKLESS_IDLE */
|
||||||
#define configCPU_CLOCK_HZ ( CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ * 1000000 )
|
#define configCPU_CLOCK_HZ ( CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ * 1000000 )
|
||||||
#define configTICK_RATE_HZ CONFIG_FREERTOS_HZ
|
#define configTICK_RATE_HZ CONFIG_FREERTOS_HZ
|
||||||
|
#define configMAX_PRIORITIES ( 25 )
|
||||||
#define configUSE_TIME_SLICING 1
|
#define configUSE_TIME_SLICING 1
|
||||||
#define configUSE_16_BIT_TICKS 0
|
#define configUSE_16_BIT_TICKS 0
|
||||||
#define configIDLE_SHOULD_YIELD 0
|
#define configIDLE_SHOULD_YIELD 0
|
||||||
|
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
/* ------------------ Scheduler Related -------------------- */
|
/* ------------------ Scheduler Related -------------------- */
|
||||||
|
|
||||||
#define configMAX_PRIORITIES ( 7 )
|
|
||||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
|
||||||
|
|
||||||
/* The stack allocated by FreeRTOS will be passed to a pthread.
|
/* The stack allocated by FreeRTOS will be passed to a pthread.
|
||||||
@@ -32,7 +31,7 @@
|
|||||||
/* ---------------- Amazon SMP FreeRTOS -------------------- */
|
/* ---------------- Amazon SMP FreeRTOS -------------------- */
|
||||||
|
|
||||||
#if CONFIG_FREERTOS_SMP
|
#if CONFIG_FREERTOS_SMP
|
||||||
#define configUSE_MINIMAL_IDLE_HOOK 0 // Not implemented yet, TODO IDF-6654
|
#define configUSE_MINIMAL_IDLE_HOOK 0 /* Not implemented yet, TODO IDF-6654 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ----------------------- System -------------------------- */
|
/* ----------------------- System -------------------------- */
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
/* ------------------ Scheduler Related -------------------- */
|
/* ------------------ Scheduler Related -------------------- */
|
||||||
|
|
||||||
#define configMAX_PRIORITIES ( 25 )
|
|
||||||
#ifdef CONFIG_FREERTOS_OPTIMIZED_SCHEDULER
|
#ifdef CONFIG_FREERTOS_OPTIMIZED_SCHEDULER
|
||||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
||||||
#else
|
#else
|
||||||
|
@@ -43,7 +43,6 @@
|
|||||||
|
|
||||||
/* ------------------ Scheduler Related -------------------- */
|
/* ------------------ Scheduler Related -------------------- */
|
||||||
|
|
||||||
#define configMAX_PRIORITIES ( 25 )
|
|
||||||
#ifdef CONFIG_FREERTOS_OPTIMIZED_SCHEDULER
|
#ifdef CONFIG_FREERTOS_OPTIMIZED_SCHEDULER
|
||||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user