Merge branch 'zim-cherrypicked-coroutine' into 'master'

freertos: upgrade to 10.4.3 - vCoRoutineSchedule fix

See merge request espressif/esp-idf!14942
This commit is contained in:
Zim Kalinowski
2021-08-30 04:46:28 +00:00

View File

@@ -280,6 +280,11 @@
/*-----------------------------------------------------------*/
void vCoRoutineSchedule( void )
{
/* Only run a co-routine after prvInitialiseCoRoutineLists() has been
* called. prvInitialiseCoRoutineLists() is called automatically when a
* co-routine is created. */
if( pxDelayedCoRoutineList != NULL )
{
/* See if any co-routines readied by events need moving to the ready lists. */
prvCheckPendingReadyList();
@@ -295,6 +300,7 @@
/* No more co-routines to check. */
return;
}
--uxTopCoRoutineReadyPriority;
}
@@ -304,8 +310,7 @@
/* Call the co-routine. */
( pxCurrentCoRoutine->pxCoRoutineFunction )( pxCurrentCoRoutine, pxCurrentCoRoutine->uxIndex );
return;
}
}
/*-----------------------------------------------------------*/