FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2010 Threads] vTaskSetApplicationTaskTag()Posted by jinx on April 16, 2010 I was looking at the example on vTaskSetApplicationTaskTag() in the FreeRTOS reference manual and I have a question about the last line in that example (Listing 42):
#define traceTASK_SWITCHED_OUT() xTaskCAllApplicationTaskHook( pxCurrentTCB, 0)
This #define, as I understand it, globally enables all tasks to run their defined registered callbacks. Am I correct? If so, what about tasks that do not define a callback? Does the kernel 'ignore' calling the task-hooks of those asks that do not define the hook callbacks or does it force all tasks to define the hook-callbacks?
RE: vTaskSetApplicationTaskTag()Posted by Dave on April 16, 2010 If pxCurrentTCB does not have a tag defined then xTaskCallApplicationTaskHook() will return pdFAIL. It is safe.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|