Updates vCoRoutineSchedule() so it returns without doing anything if if the co-routine internal data structures have not been initialised. The internal data structures are initialised when the first co-routine is created.
NOTE: Co-routines are a deprecated feature. This change was made to close off an old ticket as the source control transitions from SourceForge to Github.
staticList_txDelayedCoRoutineList2;/*< Delayed co-routines (two lists are used - one for delays that have overflowed the current tick count. */
staticList_txDelayedCoRoutineList2;/*< Delayed co-routines (two lists are used - one for delays that have overflowed the current tick count. */
staticList_t*pxDelayedCoRoutineList;/*< Points to the delayed co-routine list currently being used. */
staticList_t*pxDelayedCoRoutineList=NULL;/*< Points to the delayed co-routine list currently being used. */
staticList_t*pxOverflowDelayedCoRoutineList;/*< Points to the delayed co-routine list currently being used to hold co-routines that have overflowed the current tick count. */
staticList_t*pxOverflowDelayedCoRoutineList=NULL;/*< Points to the delayed co-routine list currently being used to hold co-routines that have overflowed the current tick count. */
staticList_txPendingReadyCoRoutineList;/*< Holds co-routines that have been readied by an external event. They cannot be added directly to the ready lists as the ready lists cannot be accessed by interrupts. */
staticList_txPendingReadyCoRoutineList;/*< Holds co-routines that have been readied by an external event. They cannot be added directly to the ready lists as the ready lists cannot be accessed by interrupts. */
/* Other file private variables. --------------------------------*/
/* Other file private variables. --------------------------------*/
@ -277,6 +277,11 @@ CRCB_t *pxCRCB;
voidvCoRoutineSchedule(void)
voidvCoRoutineSchedule(void)
{
{
/* Only run a co-routine after prvInitialiseCoRoutineLists() has been