mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Add call to xTaskGetApplicationTaskTag(), just as a test as its new and not called anywhere else.
This commit is contained in:
parent
695eed8eb4
commit
3af07deca2
|
@ -244,11 +244,18 @@ portTickType xWakeTime;
|
||||||
portLONG lTimeDifference;
|
portLONG lTimeDifference;
|
||||||
const portCHAR *pcReceivedMessage;
|
const portCHAR *pcReceivedMessage;
|
||||||
const portCHAR * const pcTaskBlockedTooLongMsg = "Print task blocked too long!\r\n";
|
const portCHAR * const pcTaskBlockedTooLongMsg = "Print task blocked too long!\r\n";
|
||||||
|
const portCHAR * const pcUnexpectedHookValueMsg = "Task hook has unexpected value!\r\n";
|
||||||
|
|
||||||
( void ) pvParameters;
|
( void ) pvParameters;
|
||||||
|
|
||||||
/* Register our callback function. */
|
/* Register our callback function. */
|
||||||
vTaskSetApplicationTaskTag( NULL, prvExampleTaskHook );
|
vTaskSetApplicationTaskTag( NULL, prvExampleTaskHook );
|
||||||
|
|
||||||
|
/* Just for test purposes. */
|
||||||
|
if( xTaskGetApplicationTaskTag( NULL ) != prvExampleTaskHook )
|
||||||
|
{
|
||||||
|
vPrintDisplayMessage( &pcUnexpectedHookValueMsg );
|
||||||
|
}
|
||||||
|
|
||||||
/* Loop continuously, blocking, then checking all the other tasks are still
|
/* Loop continuously, blocking, then checking all the other tasks are still
|
||||||
running, before blocking once again. This task blocks on the queue of
|
running, before blocking once again. This task blocks on the queue of
|
||||||
|
|
Loading…
Reference in a new issue