mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Add extended traceTASK_DELAY hook, clarified traceTASK_DELAY_UNTIL.
Adds an extended version of traceTASK_DELAY that also exposes the number of ticks to delay.
This commit is contained in:
parent
d39654e813
commit
19e901e3e8
|
@ -873,13 +873,20 @@
|
|||
#endif
|
||||
|
||||
#ifndef traceTASK_DELAY_UNTIL
|
||||
#define traceTASK_DELAY_UNTIL( x )
|
||||
#define traceTASK_DELAY_UNTIL( xTimeToWake )
|
||||
#endif
|
||||
|
||||
#ifndef traceTASK_DELAY
|
||||
#define traceTASK_DELAY()
|
||||
#endif
|
||||
|
||||
#ifndef traceTASK_DELAY_EXT
|
||||
|
||||
/* Extended version of traceTASK_DELAY that also exposes the number of ticks
|
||||
* to delay for. */
|
||||
#define traceTASK_DELAY_EXT( xTicksToDelay ) traceTASK_DELAY()
|
||||
#endif
|
||||
|
||||
#ifndef traceTASK_PRIORITY_SET
|
||||
#define traceTASK_PRIORITY_SET( pxTask, uxNewPriority )
|
||||
#endif
|
||||
|
|
2
tasks.c
2
tasks.c
|
@ -2446,7 +2446,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
|||
{
|
||||
configASSERT( uxSchedulerSuspended == 1U );
|
||||
|
||||
traceTASK_DELAY();
|
||||
traceTASK_DELAY_EXT( xTicksToDelay );
|
||||
|
||||
/* A task that is removed from the event list while the
|
||||
* scheduler is suspended will not get placed in the ready
|
||||
|
|
Loading…
Reference in a new issue