In the incrementTick task in tasks.c:
#if ( configUSE_TICK_HOOK == 1 )
extern void vApplicationTickHook( void );
/* Guard against the tick hook being called when the missed tick
count is being unwound (when the scheduler is being unlocked. */
if( uxMissedTicks == 0 )
I was wondering if it is ‘incorrect’ just to call tickHook directly from the tick ISR. If the scheduler is being unwound and the tickHook is called - what’s the worst case scenario?
Note I’ve been calling tickHook from 3.X.X directly from the tick ISR and that target has been very stable. I’m not saying it’s always correct - but it doesn’t crash and I’ve done test runs for weeks.