mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
feat(freertos/smp): Update ports to support Amazon FreeRTOS v11.0.1
- vTaskPreemptionDisable()/vTaskPreemptionEnable() are no longer available in single-core builds. - xTaskIncrementTick() calls must now be wrapped by critical section - Minimal Idle Task renamed to Passive Idle Task - Port critical section APIs updated
This commit is contained in:
@@ -201,6 +201,7 @@ BaseType_t xPortSysTickHandler(void)
|
||||
// Call FreeRTOS Increment tick function
|
||||
BaseType_t xSwitchRequired;
|
||||
#if CONFIG_FREERTOS_SMP
|
||||
UBaseType_t uxSavedStatus = taskENTER_CRITICAL_FROM_ISR();
|
||||
// Amazon SMP FreeRTOS requires that only core 0 calls xTaskIncrementTick()
|
||||
#if ( configNUM_CORES > 1 )
|
||||
if (portGET_CORE_ID() == 0) {
|
||||
@@ -211,6 +212,7 @@ BaseType_t xPortSysTickHandler(void)
|
||||
#else /* configNUM_CORES > 1 */
|
||||
xSwitchRequired = xTaskIncrementTick();
|
||||
#endif /* configNUM_CORES > 1 */
|
||||
taskEXIT_CRITICAL_FROM_ISR(uxSavedStatus);
|
||||
#else /* !CONFIG_FREERTOS_SMP */
|
||||
#if ( configNUM_CORES > 1 )
|
||||
/*
|
||||
|
Reference in New Issue
Block a user