From 5204a728344508109c99135368cc0f0a1ceca966 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sat, 30 May 2009 13:23:16 +0000 Subject: [PATCH] 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 --- Demo/PC/main.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5