From: richardbarry Date: Sat, 30 May 2009 13:23:16 +0000 (+0000) Subject: Add call to xTaskGetApplicationTaskTag(), just as a test as its new and not called... X-Git-Tag: V5.3.0~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5204a728344508109c99135368cc0f0a1ceca966;p=freertos Add call to xTaskGetApplicationTaskTag(), just as a test as its new and not called anywhere else. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@750 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/PC/main.c b/Demo/PC/main.c index 0effc4435..addc3a02d 100644 --- a/Demo/PC/main.c +++ b/Demo/PC/main.c @@ -244,11 +244,18 @@ portTickType xWakeTime; portLONG lTimeDifference; const portCHAR *pcReceivedMessage; const portCHAR * const pcTaskBlockedTooLongMsg = "Print task blocked too long!\r\n"; +const portCHAR * const pcUnexpectedHookValueMsg = "Task hook has unexpected value!\r\n"; ( void ) pvParameters; /* Register our callback function. */ vTaskSetApplicationTaskTag( NULL, prvExampleTaskHook ); + + /* Just for test purposes. */ + if( xTaskGetApplicationTaskTag( NULL ) != prvExampleTaskHook ) + { + vPrintDisplayMessage( &pcUnexpectedHookValueMsg ); + } /* Loop continuously, blocking, then checking all the other tasks are still running, before blocking once again. This task blocks on the queue of