Also call tick hook on app cpu when scheduler is suspended

This commit is contained in:
Jeroen Domburg 2016-10-28 14:37:36 +08:00
parent 309bd12855
commit 3cd86d6bce

View file

@ -2308,7 +2308,7 @@ BaseType_t xSwitchRequired = pdFALSE;
{ {
/* Guard against the tick hook being called when the pended tick /* Guard against the tick hook being called when the pended tick
count is being unwound (when the scheduler is being unlocked). */ count is being unwound (when the scheduler is being unlocked). */
if( uxPendedTicks == ( UBaseType_t ) 0U ) if( ( uxSchedulerSuspended[ xPortGetCoreID() ] != ( UBaseType_t ) pdFALSE ) || uxPendedTicks == ( UBaseType_t ) 0U )
{ {
vApplicationTickHook(); vApplicationTickHook();
} }