Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

portBASE_TYPE xTaskCreate

Posted by Mohammed Abuteir on June 8, 2010
I really beginner with freeROTS. my question is: why, after this code,

ret_val = xTaskCreate (vMMI_Menu, "MMI_Menu", configMINIMAL_STACK_SIZE, NULL, \
tskIDLE_PRIORITY+1, NULL);
call the main code this function

signed portBASE_TYPE xTaskCreate( pdTASK_CODE pvTaskCode, const signed portCHAR * const pcName, unsigned
portSHORT usStackDepth, void *pvParameters, unsigned portBASE_TYPE uxPriority, xTaskHandle *pxCreatedTask )
{
signed portBASE_TYPE xReturn;
tskTCB * pxNewTCB;
.

Thank you in advance


RE: portBASE_TYPE xTaskCreate

Posted by Richard on June 8, 2010
Sorry - I don't understand your question. Can you re-phrase it?

Regards.

RE: portBASE_TYPE xTaskCreate

Posted by Mohammed Abuteir on June 8, 2010
hi richardbarry ,

I hope to get my idee.

when I have the code Main of simulation software studio 4. Exact in this line 'ret_val = xTaskCreate (vMMI_Menu, "MMI_Menu", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY+1, NULL) '' call this instead of calling the function ''signed portBASE_TYPE xTaskCreate( pdTASK_CODE pvTaskCode, const signed portCHAR * const pcName, unsigned portSHORT usStackDepth, void *pvParameters, unsigned portBASE_TYPE uxPriority, xTaskHandle *pxCreatedTask )''. I am tried to find the function ''vMMI_Menu'' but i dont have it in my code .why the simulation he desen't give me error or why he go in the ander function.

Thank you in advance

RE: portBASE_TYPE xTaskCreate

Posted by Richard on June 8, 2010
I think you are saying that you are using xTaskCreate() to create a task that is defined by the function vMMI_Menu - but vMMI_Menu does not appear anywhere in your project so you don't understand how it can link.

I would agree with you, if vMMI_Menu does not exist then the code cannot link. Maybe it isn't linking? Or maybe vMMI_Menu is #defined to something else? In any case I have looked through the FreeRTOS code and cannot see that the name vMMI_Menu appears anywhere so I'm guessing it is a function you have defined yourself.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner