Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




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 ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists