您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ vStartPolledQueueTasks函数代码示例

51自学网 2021-06-03 09:31:12
  C++
这篇教程C++ vStartPolledQueueTasks函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中vStartPolledQueueTasks函数的典型用法代码示例。如果您正苦于以下问题:C++ vStartPolledQueueTasks函数的具体用法?C++ vStartPolledQueueTasks怎么用?C++ vStartPolledQueueTasks使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了vStartPolledQueueTasks函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: main

int main( void ){	/* Configure the hardware for use by this demo. */	prvSetupHardware();	/* Start the standard demo tasks.  These are just here to exercise the	kernel port and provide examples of how the FreeRTOS API can be used. */	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );    vCreateBlockTimeTasks();    vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );    vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );    vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );    vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );    vStartQueuePeekTasks();    vStartRecursiveMutexTasks();	/* Create the simple LED flash task. */	xTaskCreate( prvFlashTask, "Flash", configMINIMAL_STACK_SIZE, ( void * ) NULL, mainFLASH_TASK_PRIORITY, NULL );    /* Create the USB task. */    xTaskCreate( vUSBTask, "USB", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );	/* Create the uIP task.  The WEB server runs in this task. */    xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );    /* Start the scheduler. */	vTaskStartScheduler();    /* Will only get here if there was insufficient memory to create the idle    task.  The idle task is created within vTaskStartScheduler(). */	for( ;; );}
开发者ID:vmandrews,项目名称:CSDC-OBC-Software,代码行数:32,


示例2: main

/* * Starts all the other tasks, then starts the scheduler. */void main( void ){	/* Setup any hardware that has not already been configured by the low	level init routines. */	prvSetupHardware();	/* Initialise the LED outputs for use by the demo application tasks. */	vParTestInitialise();	/* Start all the standard demo application tasks. */	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vStartLEDFlashTasks( mainLED_TASK_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vStartDynamicPriorityTasks();	vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );	/* Start the check task - which is defined in this file. */	xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Start the scheduler.	NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.	The processor MUST be in supervisor mode when vTaskStartScheduler is	called.  The demo applications included in the FreeRTOS.org download switch	to supervisor mode prior to main being called.  If you are not using one of	these demo application projects then ensure Supervisor mode is used here. */	vTaskStartScheduler();	/* We should never get here as control is now taken by the scheduler. */	return;}
开发者ID:Paluche,项目名称:Hubert,代码行数:37,


示例3: main

void main(void){	prvSetupHardware();    /* Start the HTTP server task. */	xTaskCreate( vHTTPTask, "WizNet", configMINIMAL_STACK_SIZE, NULL, mainHTTP_TASK_PRIORITY, NULL );	/* Start the demo/test application tasks.  See the demo application 	section of the FreeRTOS.org WEB site for more information. */	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );  	vStartDynamicPriorityTasks();	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );    vStartComTestTasks( mainCOM_TEST_PRIORITY, serCOM2, ser57600 );	/* Start the task that checks the other demo tasks for errors. */    xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* The suicide tasks must be created last as they monitor the number of	tasks in the system to ensure there are no more or fewer than expected	compared to the number that were executing when the task started. */   	vCreateSuicidalTasks( mainSUICIDE_TASKS_PRIORITY );        	/* Finally start the scheduler. */    vTaskStartScheduler();	/* Should not get here! */	for( ;; );}
开发者ID:bleuelotus,项目名称:SweepRobot_Testing_Host,代码行数:30,


示例4: main

/* * Starts all the other tasks, then starts the scheduler.  */int main( void ){	/* Configure the processor. */	prvSetupHardware();	/* Start the task that handles the TCP/IP functionality. */    xTaskCreate( vuIP_TASK, "uIP", mainUIP_TASK_STACK_SIZE, NULL, mainUIP_PRIORITY, NULL );		/* Start the demo/test application tasks.  These are created in addition 	to the TCP/IP task for demonstration and test purposes. */	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartDynamicPriorityTasks();	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	/* Start the check task - which is defined in this file. */	    xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Now all the tasks have been started - start the scheduler.	NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.	The processor MUST be in supervisor mode when vTaskStartScheduler is 	called.  The demo applications included in the FreeRTOS.org download switch	to supervisor mode prior to main being called.  If you are not using one of	these demo application projects then ensure Supervisor mode is used here. */	vTaskStartScheduler();	/* Should never reach here! */	return 0;}
开发者ID:DanielKristofKiss,项目名称:FreeRTOS,代码行数:32,


示例5: main

/* * Application entry point: * Starts all the other tasks, then starts the scheduler.  */int main( void ){	/* Setup the hardware for use with the Keil demo board. */	prvSetupHardware();	/* Start the demo/test application tasks. */	vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );	vStartLEDFlashTasks( mainLED_TASK_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartDynamicPriorityTasks();	/* Start the check task - which is defined in this file.  This is the task	that periodically checks to see that all the other tasks are executing 	without error. */	xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Now all the tasks have been started - start the scheduler.	NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.	The processor MUST be in supervisor mode when vTaskStartScheduler is 	called.  The demo applications included in the FreeRTOS.org download switch	to supervisor mode prior to main being called.  If you are not using one of	these demo application projects then ensure Supervisor mode is used here. */	vTaskStartScheduler();	/* Should never reach here!  If you do then there was not enough heap	available for the idle task to be created. */	for( ;; );}
开发者ID:glocklueng,项目名称:proditronicproject,代码行数:35,


示例6: main

/* * Starts all the other tasks, then starts the scheduler.  */int main( void ){	/* Setup the hardware for use with the Olimex demo board. */	prvSetupHardware();	/* Start the demo/test application tasks. */	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );	vStartLEDFlashTasks( mainLED_TASK_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartMathTasks( tskIDLE_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartDynamicPriorityTasks();		vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	/* Start the check task - which is defined in this file. */	xTaskCreate( vErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Now all the tasks have been started - start the scheduler.	NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.	The processor MUST be in supervisor mode when vTaskStartScheduler is 	called.  The demo applications included in the FreeRTOS.org download switch	to supervisor mode prior to main being called.  If you are not using one of	these demo application projects then ensure Supervisor mode is used here. */	vTaskStartScheduler();	/* Should never reach here! */	return 0;}
开发者ID:EnglishArcher,项目名称:Code,代码行数:33,


示例7: main

int main( void ){	/* Prepare the hardware. */	prvSetupHardware();	/* Create the queue used by the LCD task.  Messages for display on the LCD	are received via this queue. */	xLCDQueue = xQueueCreate( mainLCD_QUEUE_SIZE, sizeof( xLCDMessage ) );	/* Start the standard demo tasks.  These do nothing other than test the	port and provide some APU usage examples. */    vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );    vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );	vStartRecursiveMutexTasks();		vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vCreateBlockTimeTasks();	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartQueuePeekTasks();		vStartLEDFlashTasks( mainLED_TASK_PRIORITY );		vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainBAUD_RATE, mainCOM_TEST_LED );	/* Start the tasks defined within this file/specific to this demo. */	xTaskCreate( prvLCDTask, ( signed char * ) "LCD", mainLCD_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );	/* Start the scheduler. */	vTaskStartScheduler();    /* Will only get here if there was insufficient memory to create the idle    task. */	return 0;}
开发者ID:Pinekn,项目名称:freeRTOS,代码行数:32,


示例8: main

/* * Application entry point: * Starts all the other tasks, then starts the scheduler.  */int main( void ){	/* Setup the hardware for use with the Olimex demo board. */	prvSetupHardware();	/* Start the standard flash tasks so the WEB server is not the only thing 	running. */	vStartLEDFlashTasks( mainLED_TASK_PRIORITY );	vStartSemaphoreTasks( tskIDLE_PRIORITY );	vStartDynamicPriorityTasks();	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vStartIntegerMathTasks( tskIDLE_PRIORITY );	/* Start the WEB server task and the error check task. */	xTaskCreate( vHTTPServerTask, ( signed char * ) "HTTP", configMINIMAL_STACK_SIZE, NULL, mainHTTP_TASK_PRIORITY, NULL );	xTaskCreate( prvErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainERROR_CHECK_PRIORITY, NULL );		/* Now all the tasks have been started - start the scheduler.	NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.	The processor MUST be in supervisor mode when vTaskStartScheduler is 	called.  The demo applications included in the FreeRTOS.org download switch	to supervisor mode prior to main being called.  If you are not using one of	these demo application projects then ensure Supervisor mode is used. */	vTaskStartScheduler();	/* Should never reach here! */	return 0;}
开发者ID:xFoolHardyx,项目名称:SmartHouseFirmware,代码行数:34,


示例9: main

/*-----------------------------------------------------------*/portSHORT main( void ){	/* Initialise hardware and utilities. */	vParTestInitialise();	vPrintInitialise();	prvInitLED();	/* CREATE ALL THE DEMO APPLICATION TASKS. */	vStartComTestTasks( mainCOM_TEST_PRIORITY, serCOM2, ser38400 );	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartBlockingQueueTasks( mainQUEUE_BLOCK_PRIORITY );	vStartLEDFlashTasks( mainLED_TASK_PRIORITY );	vStartSemaphoreTasks( mainSEMAPHORE_TASK_PRIORITY );	/* Create the "Print" task as described at the top of the file. */	xTaskCreate( vErrorChecks, "Print", mainPRINT_STACK_SIZE, NULL, mainPRINT_TASK_PRIORITY, NULL );	/* This task has to be created last as it keeps account of the number of tasks	it expects to see running. */	vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );	/* Set the scheduler running.  This function will not return unless a task	calls vTaskEndScheduler(). */	vTaskStartScheduler();	return 1;}
开发者ID:darknesmonk,项目名称:freertos-5.1.2-lpc23xx,代码行数:30,


示例10: main

int main(void){    /* Configure the hardware ready to run the test. */    prvSetupHardware();    xTaskCreate( vWebTask, ( signed portCHAR * ) "Web", TCPIP_THREAD_STACKSIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );#ifdef CHECK_TEST    xTaskCreate( vCheckTask, ( signed portCHAR * ) "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );#endif    //vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );    vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );    vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );    vStartGenericQueueTasks( tskIDLE_PRIORITY );    vStartQueueSetTasks();    printf("FreeRTOS is starting .../n");    /* Start the scheduler. */    vTaskStartScheduler();    /* If all is well, the scheduler will now be running, and the following line    will never be reached.  If the following line does execute, then there was    insufficient FreeRTOS heap memory available for the idle and/or timer tasks    to be created.  See the memory management section on the FreeRTOS web site    for more details. */    for( ;; );}
开发者ID:wjw890912,项目名称:Power-measurement,代码行数:30,


示例11: main

short main( void ){	prvIncrementResetCount();	/* Setup the LED's for output. */	vParTestInitialise();	/* Create the standard demo tasks. */	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartRegTestTasks();		/* Create the tasks defined within this file. */	xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Create the co-routines that flash the LED's. */	vStartFlashCoRoutines( mainNUM_FLASH_COROUTINES );		/* In this port, to use preemptive scheduler define configUSE_PREEMPTION	as 1 in portmacro.h.  To use the cooperative scheduler define	configUSE_PREEMPTION as 0. */	vTaskStartScheduler();	return 0;}
开发者ID:DonjetaE,项目名称:FreeRTOS,代码行数:26,


示例12: main

int main( void ){	/* Setup the hardware ready for this demo. */	prvSetupHardware();	/* Create the WEB server task. */	xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );	/* Start the standard demo tasks. */	vStartLEDFlashTasks( tskIDLE_PRIORITY );	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );    vCreateBlockTimeTasks();	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );	vStartQueuePeekTasks();    vStartRecursiveMutexTasks();	/* Start the reg test tasks - defined in this file. */	xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );	xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );	/* Create the check task. */	xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Start the scheduler. */	vTaskStartScheduler();    /* Will only get here if there was insufficient heap to create the idle    task. */	for( ;; );}
开发者ID:DanielKristofKiss,项目名称:FreeRTOS,代码行数:32,


示例13: main

int main( void ){	#ifdef DEBUG		debug();	#endif	prvSetupHardware();	/* Create the queue used by the LCD task.  Messages for display on the LCD	are received via this queue. */	xLCDQueue = xQueueCreate( mainLCD_QUEUE_SIZE, sizeof( xLCDMessage ) );		/* Start the standard demo tasks. */	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );    vCreateBlockTimeTasks();	vStartGenericQueueTasks( mainGEN_Q_PRIORITY );	vStartQueuePeekTasks();	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	/* Start the tasks defined within this file/specific to this demo. */    xTaskCreate( prvCheckTask, ( signed portCHAR * ) "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );		xTaskCreate( prvLCDTask, ( signed portCHAR * ) "LCD", configLCD_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );	xTaskCreate( prvFlashTask, ( signed portCHAR * ) "Flash", configMINIMAL_STACK_SIZE, NULL, mainFLASH_TASK_PRIORITY, NULL );	/* Configure the timers used by the fast interrupt timer test. */	vSetupTimerTest();		/* Start the scheduler. */	vTaskStartScheduler();		/* Will only get here if there was not enough heap space to create the	idle task. */	return 0;}
开发者ID:ECEEmbedded,项目名称:ARMCodeRichardMS3,代码行数:34,


示例14: main

int main( void ){    /* Configure the clocks, UART and GPIO. */    prvSetupHardware();    /* Create the semaphore used to wake the button handler task from the GPIO    ISR. */    vSemaphoreCreateBinary( xButtonSemaphore );    xSemaphoreTake( xButtonSemaphore, 0 );    /* Create the queue used to pass message to vPrintTask. */    xPrintQueue = xQueueCreate( mainQUEUE_SIZE, sizeof( char * ) );    /* Start the standard demo tasks. */    vStartIntegerMathTasks( tskIDLE_PRIORITY );    vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );    vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );    vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );    /* Start the tasks defined within the file. */    xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );    xTaskCreate( vButtonHandlerTask, "Status", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY + 1, NULL );    xTaskCreate( vPrintTask, "Print", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );    /* Start the scheduler. */    vTaskStartScheduler();    /* Will only get here if there was insufficient heap to start the    scheduler. */    return 0;}
开发者ID:BuiChien,项目名称:FreeRTOS-TM4C123GXL,代码行数:32,


示例15: main

/* * Starts all the other tasks, then starts the scheduler. */int main( void ){	/* Setup the hardware for use with the Xilinx evaluation board. */	prvSetupHardware();	/* Start the demo/test application tasks. */	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );	vStartLEDFlashTasks( mainLED_TASK_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartDynamicPriorityTasks();	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vStart7SegTasks( main7SEG_TASK_PRIORITY );	vStartRegTestTasks();	/* Start the check task - which is defined in this file. */	xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Now all the tasks have been started - start the scheduler. */	vTaskStartScheduler();	/* Should never reach here! */	for( ;; );}
开发者ID:Eclo,项目名称:FreeRTOS,代码行数:28,


示例16: main

/* Creates the tasks, then starts the scheduler. */void main( void ){	/* Initialise the required hardware. */	vParTestInitialise();	/* Send a character so we have some visible feedback of a reset. */	xSerialPortInitMinimal( mainBAUD_RATE, mainCOMMS_QUEUE_LENGTH );	xSerialPutChar( NULL, 'X', mainNO_BLOCK );	/* Start a few of the standard demo tasks found in the demo/common directory. */	vStartIntegerMathTasks( mainINTEGER_PRIORITY);	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );	/* Start the check task defined in this file. */	xTaskCreate( vErrorChecks, ( const char * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Start the scheduler.  Will never return here. */	vTaskStartScheduler();	while(1)	/* This point should never be reached. */	{	}}
开发者ID:DIYzzuzpb,项目名称:PIC32USB,代码行数:26,


示例17: main

/* * Starts all the other tasks, then starts the scheduler. */int main( void ){	/* Configure the processor. */	prvSetupHardware();	/* Setup the port used to flash the LED's. */	vParTestInitialise();	/* Start the task that handles the TCP/IP and WEB server functionality. */    xTaskCreate( vuIP_TASK, "uIP", mainUIP_TASK_STACK_SIZE, NULL, mainUIP_PRIORITY, NULL );		/* Start the demo/test application tasks.  These are created in addition	to the TCP/IP task for demonstration and test purposes. */	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartDynamicPriorityTasks();	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartLEDFlashTasks( mainFLASH_PRIORITY );	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vStartMathTasks( tskIDLE_PRIORITY );	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	/* Start the check task - which is defined in this file. */	    xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Must be last to get created. */	vCreateSuicidalTasks( mainDEATH_PRIORITY );	/* Now all the tasks have been started - start the scheduler. */	vTaskStartScheduler();	/* Should never reach here because the tasks should now be executing! */	return 0;}
开发者ID:AskDrCatcher,项目名称:FreeRTOS,代码行数:36,


示例18: main

/* ------------------------ Implementation -------------------------------- */intmain( int argc, char *argv[] ){    asm volatile    ( "move.w  #0x2000, %sr/n/t" );    xSTDComPort = xSerialPortInitMinimal( 38400, 8 );    /* Start the demo/test application tasks. */    vStartIntegerMathTasks( tskIDLE_PRIORITY );    vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );    vStartMathTasks( tskIDLE_PRIORITY );    vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );    vStartDynamicPriorityTasks(  );    vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );    /* Start the check task - which is defined in this file. */    xTaskCreate( vErrorChecks, "Check", 512, NULL,                 mainCHECK_TASK_PRIORITY, NULL );    /* Now all the tasks have been started - start the scheduler. */    vTaskStartScheduler(  );    /* Should never get here! */    return 0;}
开发者ID:dirk-brandewie,项目名称:freertos,代码行数:26,


示例19: main_full

int main_full( void ){	/* Start the check task as described at the top of this file. */	xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Create the standard demo tasks. */	vStartTaskNotifyTask();	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );	vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );	vStartQueuePeekTasks();	vStartMathTasks( mainFLOP_TASK_PRIORITY );	vStartRecursiveMutexTasks();	vStartCountingSemaphoreTasks();	vStartDynamicPriorityTasks();	vStartQueueSetTasks();	vStartQueueOverwriteTask( mainQUEUE_OVERWRITE_PRIORITY );	vStartEventGroupTasks();	vStartInterruptSemaphoreTasks();	vStartQueueSetPollingTask();	vCreateBlockTimeTasks();	vCreateAbortDelayTasks();	xTaskCreate( prvDemoQueueSpaceFunctions, "QSpace", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );	xTaskCreate( prvPermanentlyBlockingSemaphoreTask, "BlockSem", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );	xTaskCreate( prvPermanentlyBlockingNotificationTask, "BlockNoti", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );	#if( configSUPPORT_STATIC_ALLOCATION == 1 )	{		vStartStaticallyAllocatedTasks();	}	#endif	#if( configUSE_PREEMPTION != 0  )	{		/* Don't expect these tasks to pass when preemption is not used. */		vStartTimerDemoTask( mainTIMER_TEST_PERIOD );	}	#endif	/* The suicide tasks must be created last as they need to know how many	tasks were running prior to their creation.  This then allows them to	ascertain whether or not the correct/expected number of tasks are running at	any given time. */	vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );	/* Create the semaphore that will be deleted in the idle task hook.  This	is done purely to test the use of vSemaphoreDelete(). */	xMutexToDelete = xSemaphoreCreateMutex();	/* Start the scheduler itself. */	vTaskStartScheduler();	/* Should never get here unless there was not enough heap space to create	the idle and other system tasks. */	return 0;}
开发者ID:AlexShiLucky,项目名称:freertos,代码行数:58,


示例20: main_full

void main_full( void ){	/* Creates all the tasks and timers, then starts the scheduler. */	/* First create the 'standard demo' tasks.  These are used to demonstrate	API functions being used and also to test the kernel port.  More information	is provided on the FreeRTOS.org WEB site. */	vStartDynamicPriorityTasks();	vStartPolledQueueTasks( tskIDLE_PRIORITY );	/* Additional tasks can be added by un-commenting the line below on devices	with sufficient RAM for a larger heap (see configTOTAL_HEAP_SIZE in	FreeRTOSConfig.h). */	/*vCreateBlockTimeTasks();*/	/* Create the RegTest tasks as described at the top of this file. */	xTaskCreate( prvRegTest1Entry,			/* The function that implements the task. */				 "Reg1",					/* Text name for the task - to assist debugging only, not used by the kernel. */				 configMINIMAL_STACK_SIZE, 	/* The size of the stack allocated to the task (in words, not bytes). */				 mainREG_TEST_1_PARAMETER,  /* The parameter passed into the task. */				 tskIDLE_PRIORITY, 			/* The priority at which the task will execute. */				 NULL );					/* Used to pass the handle of the created task out to the function caller - not used in this case. */	xTaskCreate( prvRegTest2Entry, "Reg2", configMINIMAL_STACK_SIZE, mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );	/* Create the software timer that performs the 'check' functionality,	as described at the top of this file. */	xCheckTimer = xTimerCreate( "CheckTimer",					/* A text name, purely to help debugging. */								( mainCHECK_TIMER_PERIOD_MS ),	/* The timer period, in this case 3000ms (3s). */								pdTRUE,							/* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */								( void * ) 0,					/* The ID is not used, so can be set to anything. */								prvCheckTimerCallback			/* The callback function that inspects the status of all the other tasks. */							  );	/* Create the software timer that just increments a variable for demo	purposes. */	xDemoTimer = xTimerCreate( "DemoTimer",						/* A text name, purely to help debugging. */								( mainDEMO_TIMER_PERIOD_MS ),	/* The timer period, in this case it is always calculated relative to the check timer period (see the definition of mainDEMO_TIMER_PERIOD_MS). */								pdTRUE,							/* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */								( void * ) 0,					/* The ID is not used, so can be set to anything. */								prvDemoTimerCallback			/* The callback function that inspects the status of all the other tasks. */							  );	/* Start both the check timer and the demo timer.  The timers won't actually	start until the scheduler is started. */	xTimerStart( xCheckTimer, mainDONT_BLOCK );	xTimerStart( xDemoTimer, mainDONT_BLOCK );	/* Finally start the scheduler running. */	vTaskStartScheduler();	/* If all is well execution will never reach here as the scheduler will be	running.  If this null loop is reached then it is likely there was	insufficient FreeRTOS heap available for the idle task and/or timer task to	be created.  See http://www.freertos.org/a00111.html. */	for( ;; );}
开发者ID:DanielKristofKiss,项目名称:FreeRTOS,代码行数:57,


示例21: main_full

void main_full( void ){TimerHandle_t xCheckTimer = NULL;	/* Prepare to run the full demo: Configure the IO, register the CLI	commands, and depending on configuration, generate a set of sample files on	a RAM disk. */	prvPrepareForFullDemo();	/* Start all the other standard demo/test tasks.  The have not particular	functionality, but do demonstrate how to use the FreeRTOS API and test the	kernel port. */	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vStartDynamicPriorityTasks();	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vCreateBlockTimeTasks();	vStartCountingSemaphoreTasks();	vStartGenericQueueTasks( tskIDLE_PRIORITY );	vStartRecursiveMutexTasks();	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartLEDFlashTimers( mainNUMBER_OF_FLASH_TIMERS_LEDS );	/* Start the tasks that implements the command console on the UART, as	described above. */	vUARTCommandConsoleStart( mainUART_COMMAND_CONSOLE_STACK_SIZE, mainUART_COMMAND_CONSOLE_TASK_PRIORITY );	/* Create the software timer that performs the 'check' functionality,	as described at the top of this file. */	xCheckTimer = xTimerCreate( "CheckTimer",					/* A text name, purely to help debugging. */								( mainCHECK_TIMER_PERIOD_MS ),	/* The timer period, in this case 3000ms (3s). */								pdTRUE,							/* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */								( void * ) 0,					/* The ID is not used, so can be set to anything. */								prvCheckTimerCallback			/* The callback function that inspects the status of all the other tasks. */							  );	if( xCheckTimer != NULL )	{		xTimerStart( xCheckTimer, mainDONT_BLOCK );	}	/* The set of tasks created by the following function call have to be	created last as they keep account of the number of tasks they expect to see	running. */	vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );	/* Start the scheduler. */	vTaskStartScheduler();	/* If all is well, the scheduler will now be running, and the following line	will never be reached.  If the following line does execute, then there was	insufficient FreeRTOS heap memory available for the idle and/or timer tasks	to be created.  See the memory management section on the FreeRTOS web site	for more details. */	for( ;; );}
开发者ID:bleuelotus,项目名称:SweepRobot_Testing_Host,代码行数:56,


示例22: main

/* * Starts all the other tasks, then starts the scheduler. */void main( void ){	#ifdef DEBUG		debug();	#endif		/* Setup any hardware that has not already been configured by the low	level init routines. */	prvSetupHardware();	/* Create the queue used to send data to the LCD task. */	xLCDQueue = xQueueCreate( mainLCD_QUEUE_LEN, sizeof( xLCDMessage ) );		/* Start all the standard demo application tasks. */	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vStartLEDFlashTasks( mainLED_TASK_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vStartDynamicPriorityTasks();	vStartMathTasks( tskIDLE_PRIORITY );	vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );	vStartGenericQueueTasks( mainGENERIC_QUEUE_PRIORITY );	vStartQueuePeekTasks();		/* Start the tasks which are defined in this file. */	xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	xTaskCreate( prvLCDTask, "LCD", configMINIMAL_STACK_SIZE, ( void * ) &xLCDQueue, mainLCD_TASK_PRIORITY, NULL );	xTaskCreate( prvLCDMessageTask, "MSG", configMINIMAL_STACK_SIZE, ( void * ) &xLCDQueue, mainMSG_TASK_PRIORITY, NULL );	/* Start either the uIP TCP/IP stack or the lwIP TCP/IP stack. */	#ifdef STACK_UIP		/* Finally, create the WEB server task. */		xTaskCreate( vuIP_Task, "uIP", configMINIMAL_STACK_SIZE * 3, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );	#endif	#ifdef STACK_LWIP			/* Create the lwIP task.  This uses the lwIP RTOS abstraction layer.*/	  	vlwIPInit();		sys_set_state(	( signed portCHAR * ) "httpd", lwipBASIC_SERVER_STACK_SIZE );	  	sys_thread_new( vBasicWEBServer, ( void * ) NULL, basicwebWEBSERVER_PRIORITY );		sys_set_default_state();	#endif	/* Start the scheduler.	NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.	The processor MUST be in supervisor mode when vTaskStartScheduler is	called.  The demo applications included in the FreeRTOS.org download switch	to supervisor mode prior to main being called.  If you are not using one of	these demo application projects then ensure Supervisor mode is used here. */	vTaskStartScheduler();	/* We should never get here as control is now taken by the scheduler. */	for( ;; );}
开发者ID:svn2github,项目名称:freertos,代码行数:59,


示例23: main

/************************************************************************* * Please ensure to read http://www.freertos.org/portlm3sx965.html * which provides information on configuring and running this demo for the * various Luminary Micro EKs. *************************************************************************/int main( void ){	prvSetupHardware();	/* Create the queue used by the OLED task.  Messages for display on the OLED	are received via this queue. */	xOLEDQueue = xQueueCreate( mainOLED_QUEUE_SIZE, sizeof( xOLEDMessage ) );	/* Start the standard demo tasks. */    vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );    vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );    vStartInterruptQueueTasks();	vStartRecursiveMutexTasks();	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vCreateBlockTimeTasks();	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartQueuePeekTasks();	vStartQueueSetTasks();	vStartEventGroupTasks();	/* Exclude some tasks if using the kickstart version to ensure we stay within	the 32K code size limit. */	#if mainINCLUDE_WEB_SERVER != 0	{		/* Create the uIP task if running on a processor that includes a MAC and		PHY. */		if( SysCtlPeripheralPresent( SYSCTL_PERIPH_ETH ) )		{			xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );		}	}	#endif	/* Start the tasks defined within this file/specific to this demo. */	xTaskCreate( vOLEDTask, "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );	/* The suicide tasks must be created last as they need to know how many	tasks were running prior to their creation in order to ascertain whether	or not the correct/expected number of tasks are running at any given time. */    vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );	/* Configure the high frequency interrupt used to measure the interrupt	jitter time. */	vSetupHighFrequencyTimer();	/* Start the scheduler. */	vTaskStartScheduler();    /* Will only get here if there was insufficient memory to create the idle    task. */	return 0;}
开发者ID:HclX,项目名称:freertos,代码行数:60,


示例24: main_full

void main_full( void ){xTimerHandle xCheckTimer = NULL;	/* Start all the other standard demo/test tasks.  The have not particular	functionality, but do demonstrate how to use the FreeRTOS API and test the	kernel port. */	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vStartDynamicPriorityTasks();	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vCreateBlockTimeTasks();	vStartCountingSemaphoreTasks();	vStartGenericQueueTasks( tskIDLE_PRIORITY );	vStartRecursiveMutexTasks();	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartMathTasks( mainFLOP_TASK_PRIORITY );		/* Create the register check tasks, as described at the top of this	file */	xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );	xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );	/* Create the software timer that performs the 'check' functionality,	as described at the top of this file. */	xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */								( mainCHECK_TIMER_PERIOD_MS ),		/* The timer period, in this case 3000ms (3s). */								pdTRUE,								/* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */								( void * ) 0,						/* The ID is not used, so can be set to anything. */								prvCheckTimerCallback				/* The callback function that inspects the status of all the other tasks. */							  );			if( xCheckTimer != NULL )	{		xTimerStart( xCheckTimer, mainDONT_BLOCK );	}	/* The set of tasks created by the following function call have to be 	created last as they keep account of the number of tasks they expect to see 	running. */	vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );	/* Start the scheduler. */	vTaskStartScheduler();		/* If all is well, the scheduler will now be running, and the following line	will never be reached.  If the following line does execute, then there was	insufficient FreeRTOS heap memory available for the idle and/or timer tasks	to be created.  See the memory management section on the FreeRTOS web site	for more details. */	for( ;; )	{		__asm volatile( "NOP" );	}}
开发者ID:InSoonPark,项目名称:FreeRTOS,代码行数:55,


示例25: prvOptionallyCreateComprehensveTestApplication

static void prvOptionallyCreateComprehensveTestApplication( void ){	#if ( mainCREATE_SIMPLE_LED_FLASHER_DEMO_ONLY == 0 )	{	xTimerHandle xCheckTimer = NULL;		/* Start all the other standard demo/test tasks. */		vStartIntegerMathTasks( tskIDLE_PRIORITY );		vStartDynamicPriorityTasks();		vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );		vCreateBlockTimeTasks();		vStartCountingSemaphoreTasks();		vStartGenericQueueTasks( tskIDLE_PRIORITY );		vStartRecursiveMutexTasks();		vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );		vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );		/* Most importantly, start the tasks that use the FPU. */		vStartMathTasks( mainFLOP_TASK_PRIORITY );				/* Create the register check tasks, as described at the top of this		file */		xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );		xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );		/* Create the software timer that performs the 'check' functionality,		as described at the top of this file. */		xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */									( mainCHECK_TIMER_PERIOD_MS ),		/* The timer period, in this case 3000ms (3s). */									pdTRUE,								/* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */									( void * ) 0,						/* The ID is not used, so can be set to anything. */									prvCheckTimerCallback				/* The callback function that inspects the status of all the other tasks. */								  );					if( xCheckTimer != NULL )		{			xTimerStart( xCheckTimer, mainDONT_BLOCK );		}		/* This task has to be created last as it keeps account of the number of		tasks it expects to see running. */		vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );	}	#else /* mainCREATE_SIMPLE_LED_FLASHER_DEMO_ONLY */	{		/* Just to prevent compiler warnings when the configuration options are		set such that these static functions are not used. */		( void ) vRegTest1Task;		( void ) vRegTest2Task;		( void ) prvCheckTimerCallback;		( void ) prvSetupNestedFPUInterruptsTest;	}	#endif /* mainCREATE_SIMPLE_LED_FLASHER_DEMO_ONLY */}
开发者ID:Dzenik,项目名称:FreeRTOS_TEST,代码行数:54,


示例26: main

int main(void){extern void HardwareSetup( void );	/* Renesas provided CPU configuration routine.  The clocks are configured in	here. */	HardwareSetup();	/* Turn all LEDs off. */	vParTestInitialise();	/* Start the reg test tasks which test the context switching mechanism. */	xTaskCreate( prvRegTest1Task, "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_1_PARAMETER, tskIDLE_PRIORITY, NULL );	xTaskCreate( prvRegTest2Task, "RegTst2", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );	/* The web server task. */	xTaskCreate( vuIP_Task, "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );	/* Start the check task as described at the top of this file. */	xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* Create the standard demo tasks. */	vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );	vCreateBlockTimeTasks();	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );	vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );	vStartLEDFlashTasks( mainFLASH_TASK_PRIORITY );	vStartQueuePeekTasks();	vStartRecursiveMutexTasks();	vStartInterruptQueueTasks();	vStartMathTasks( mainFLOP_TASK_PRIORITY );	/* The suicide tasks must be created last as they need to know how many	tasks were running prior to their creation in order to ascertain whether	or not the correct/expected number of tasks are running at any given time. */	vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );	/* Start the tasks running. */	vTaskStartScheduler();	/* If all is well we will never reach here as the scheduler will now be	running.  If we do reach here then it is likely that there was insufficient	heap available for the idle task to be created. */	for( ;; );		return 0;}
开发者ID:vstehle,项目名称:FreeRTOS,代码行数:49,


示例27: main

void main( void ){	InitIrqLevels();		/* Initialize interrupts */	__set_il( 7 );			/* Allow all levels      */	prvSetupHardware();	#if WATCHDOG == WTC_IN_TASK		vStartWatchdogTask( WTC_TASK_PRIORITY );	#endif	/* Start the standard demo application tasks. */	vStartLEDFlashTasks( mainLED_TASK_PRIORITY );	vStartIntegerMathTasks( tskIDLE_PRIORITY );	vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );	vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );	vStartBlockingQueueTasks( mainQUEUE_BLOCK_PRIORITY );	vStartDynamicPriorityTasks();	vStartFlashCoRoutines( mainNUM_FLASH_CO_ROUTINES );	vStartGenericQueueTasks( mainGENERIC_QUEUE_PRIORITY );	vCreateBlockTimeTasks();	/* The definition INCLUDE_TraceListTasks is set within FreeRTOSConfig.h. */	#if INCLUDE_TraceListTasks == 1		vUtilityStartTraceTask( TASK_UTILITY_PRIORITY );	#else		vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED - 1 );	#endif	/* Start the 'Check' task which is defined in this file. */	xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );	/* The suicide tasks must be started last as they record the number of other	tasks that exist within the system.  The value is then used to ensure at run	time the number of tasks that exists is within expected bounds. */	vCreateSuicidalTasks( mainDEATH_PRIORITY );	/* Now start the scheduler.  Following this call the created tasks should	be executing. */	vTaskStartScheduler( );	/* vTaskStartScheduler() will only return if an error occurs while the	idle task is being created. */	for( ;; );}
开发者ID:jbalcerz,项目名称:Stm32Discovery_FreeRTOS,代码行数:45,


示例28: main

/* * Creates the majority of the demo application tasks before starting the * scheduler. */void main(void){    TaskHandle_t xCreatedTask;    prvSetupHardware();    /* Start the reg test tasks which test the context switching mechanism. */    xTaskCreate( vRegTest1Task, "RegTst1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xCreatedTask );    xPortUsesFloatingPoint( xCreatedTask );    xTaskCreate( vRegTest2Task, "RegTst2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xCreatedTask );    xPortUsesFloatingPoint( xCreatedTask );    xTaskCreate( vuIP_Task, "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );    /* Start the check task as described at the top of this file. */    xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );    /* Start the standard demo tasks.  These don't perform any particular useful    functionality, other than to demonstrate the FreeRTOS API being used. */    vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );    vCreateBlockTimeTasks();    vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );    vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );    vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );    vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );    vStartLEDFlashTasks( mainFLASH_TASK_PRIORITY );    vStartQueuePeekTasks();    vStartRecursiveMutexTasks();    /* Start the math tasks as described at the top of this file. */    vStartMathTasks( mainFLOP_TASK_PRIORITY );    /* The suicide tasks must be created last as they need to know how many    tasks were running prior to their creation in order to ascertain whether    or not the correct/expected number of tasks are running at any given time. */    vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );    /* Start the tasks running. */    vTaskStartScheduler();    /* Will only get here if there was insufficient heap memory to create the idle    task.  Increase the configTOTAL_HEAP_SIZE setting in FreeRTOSConfig.h. */    for( ;; );}
开发者ID:HclX,项目名称:freertos,代码行数:49,



注:本文中的vStartPolledQueueTasks函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ vStartQueuePeekTasks函数代码示例
C++ vStartMathTasks函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。