]> git.sur5r.net Git - freertos/commitdiff
Add call to xTaskGetApplicationTaskTag(), just as a test as its new and not called...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 30 May 2009 13:23:16 +0000 (13:23 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 30 May 2009 13:23:16 +0000 (13:23 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@750 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/PC/main.c

index 0effc4435c708226072505359a6095b6a2bcc500..addc3a02d2a67b2069e759508db17b3da6430187 100644 (file)
@@ -244,11 +244,18 @@ portTickType xWakeTime;
 portLONG lTimeDifference;\r
 const portCHAR *pcReceivedMessage;\r
 const portCHAR * const pcTaskBlockedTooLongMsg = "Print task blocked too long!\r\n";\r
+const portCHAR * const pcUnexpectedHookValueMsg = "Task hook has unexpected value!\r\n";\r
 \r
        ( void ) pvParameters;\r
 \r
        /* Register our callback function. */\r
        vTaskSetApplicationTaskTag( NULL, prvExampleTaskHook );\r
+       \r
+       /* Just for test purposes. */\r
+       if( xTaskGetApplicationTaskTag( NULL ) != prvExampleTaskHook )\r
+       {\r
+               vPrintDisplayMessage( &pcUnexpectedHookValueMsg );\r
+       }\r
 \r
        /* Loop continuously, blocking, then checking all the other tasks are still\r
        running, before blocking once again.  This task blocks on the queue of\r