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] [October 2008 Threads] Task parameters.Posted by Oren La on October 22, 2008 Hello
One of the xTaskCreate(...) function parameters is pvParameters parameter. I saw that this parameter is being pushed into the stack when creating the task. When and where this value is pop out? I didn't find the code that handle it.
Thanks
RE: Task parameters.Posted by MEdwards on October 22, 2008 Each task has the following prototype
void task_function( void *parameter_here );
The value you pass to xTaskCreate() in pvParameters appears in the parameter_here variable within the task.
See the flash.c demo for a simple example.
RE: Task parameters.Posted by Oren La on October 22, 2008 Hi
What i wanted to know is to where the pvParameters parameter is being restored? I wrote a porting to this RTOS. I saw that in the port.c file this value is being pushed into the stack. When i return to this task (after a context switch) i restore this value. To where this value is being restored? Please write the file name and the location in this file.
Thanks
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|