Merge branch 'main' into main

This commit is contained in:
chinglee-iot 2024-05-07 23:40:44 +08:00 committed by GitHub
commit cfb3416903
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -353,12 +353,12 @@ BaseType_t xPortStartScheduler( void )
pxThreadState = ( ThreadState_t * ) *( ( size_t * ) pxCurrentTCB );
ulCriticalNesting = portNO_CRITICAL_NESTING;
/* Start the first task. */
ResumeThread( pxThreadState->pvThread );
/* The scheduler is now running. */
xPortRunning = pdTRUE;
/* Start the first task. */
ResumeThread( pxThreadState->pvThread );
/* Handle all simulated interrupts - including yield requests and
* simulated ticks. */
prvProcessSimulatedInterrupts();