这篇教程C++ FRTOS1_xTaskCreate函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中FRTOS1_xTaskCreate函数的典型用法代码示例。如果您正苦于以下问题:C++ FRTOS1_xTaskCreate函数的具体用法?C++ FRTOS1_xTaskCreate怎么用?C++ FRTOS1_xTaskCreate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了FRTOS1_xTaskCreate函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: APP_Startvoid APP_Start(void) {#if PL_HAS_RTOS_TRACE if(RTOSTRC1_uiTraceStart()!=1) { for(;;){} /* failure? */ }#endif#if PL_HAS_RADIO RNETA_Init();#endif SHELL_Init(); if (FRTOS1_xTaskCreate( MainTask, /* pointer to the task */ "Main", /* task name for kernel awareness debugging */ configMINIMAL_STACK_SIZE+500, /* task stack size */ (void*)NULL, /* optional task startup argument */ tskIDLE_PRIORITY, /* initial priority */ (xTaskHandle*)NULL /* optional task handle to create */ ) != pdPASS) { /*lint -e527 */ for(;;){} /* error! probably out of memory */ /*lint +e527 */ } timerHndl = xTimerCreate("timer0", TIMER_PERIOD_MS/portTICK_RATE_MS, pdTRUE, (void *)0, vTimerCallback); if (timerHndl==NULL) { for(;;); /* failure! */ } if (xTimerStart(timerHndl, 0)!=pdPASS) { for(;;); /* failure! */ } FRTOS1_vTaskStartScheduler();}
开发者ID:GuilhermeRamalhoSilva,项目名称:mcuoneclipse,代码行数:31,
示例2: APP_Runvoid APP_Run(void) { appState = APP_STATE_INIT; MOT_Init(); SHELL_Init();#if PL_HAS_LINE_SENSOR REF_Init(); LF_Init(); TURN_Init();#endif#if PL_HAS_ULTRASONIC US_Init();#endif#if PL_HAS_BUZZER BUZ_Init();#endif#if PL_HAS_EVENTS EVNT_Init();#endif#if PL_HAS_RADIO RADIO_Init();#endif#if PL_HAS_REMOTE REMOTE_Init();#endif#if PL_HAS_QUEUE QUEUE_Init();#endif if (FRTOS1_xTaskCreate(MainTask, (signed portCHAR *)"Main", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ } FRTOS1_vTaskStartScheduler();}
开发者ID:BarberCol,项目名称:mcuoneclipse,代码行数:32,
示例3: SEM_Init/*! /brief Initializes module */void SEM_Init(void) {#if USE_SEMAPHORES if (FRTOS1_xTaskCreate(vMasterTask, "Master", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ }#endif}
开发者ID:infotronik,项目名称:sumo,代码行数:8,
示例4: REF_Initvoid REF_Init(void) { refState = REF_STATE_INIT; timerHandle = RefCnt_Init(NULL); /*! /todo You might need to adjust priority or other task settings */ if (FRTOS1_xTaskCreate(ReflTask, "Refl", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ }}
开发者ID:chregubr85,项目名称:42,代码行数:8,
示例5: SEM_Init/*! /brief Initializes module */void SEM_Init(void) { /*! /todo Implement functionality */#if 0 if (FRTOS1_xTaskCreate(vMasterTask, "Master", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ }#endif}
开发者ID:BettyET,项目名称:source42,代码行数:9,
示例6: APP_Startvoid APP_Start(void) { NEO_Init(); SHELL_Init(); if (FRTOS1_xTaskCreate(AppTask, "App", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY+2, NULL) != pdPASS) { for(;;){} /* error */ } FRTOS1_vTaskStartScheduler();}
开发者ID:Btar,项目名称:mcuoneclipse,代码行数:8,
示例7: APPFRDM_Initvoid APPFRDM_Init(void){ if (FRTOS1_xTaskCreate(T3, (signed portCHAR *)"T3", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} }}
开发者ID:Jack67,项目名称:Sumobot,代码行数:8,
示例8: BLEUART_CMDMODE_Initvoid BLEUART_CMDMODE_Init(void) { txBuffer[0] = '/0'; isConnected = FALSE; isEnabled = FALSE; if (FRTOS1_xTaskCreate(BleUartTask, "BleUart", configMINIMAL_STACK_SIZE+100, NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ }}
开发者ID:mbangtri,项目名称:mcuoneclipse,代码行数:8,
示例9: StateMachine_Initvoid StateMachine_Init(void) { //refState = REF_STATE_INIT; //timerHandle = RefCnt_Init(NULL); /*! /todo You might need to adjust priority or other task settings */ DRV_EnableDisable(0); if (FRTOS1_xTaskCreate(StateMachineTask, "StateMachine", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ }}
开发者ID:fmario,项目名称:intro_sumo,代码行数:9,
示例10: RTOS_Initvoid RTOS_Init(void) { static const int led1 = 1; static const int led2 = 2; EVNT_SetEvent(EVNT_STARTUP); /* set startup event */ /*! /todo Create tasks here */ if (FRTOS1_xTaskCreate(AppTask, (signed portCHAR *)"App1", configMINIMAL_STACK_SIZE, (void*)&led1, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error case only, stay here! */ }#if 0 if (FRTOS1_xTaskCreate(AppTask, (signed portCHAR *)"App2", configMINIMAL_STACK_SIZE, (void*)&led2, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error case only, stay here! */ } if (FRTOS1_xTaskCreate(KillMe, (signed portCHAR *)"KillMe", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error case only, stay here! */ }#endif}
开发者ID:2600-1408-10-285-19ff,项目名称:INTRO,代码行数:18,
示例11: main/*lint -save -e970 Disable MISRA rule (6.3) checking. */int main(void)/*lint -restore Enable MISRA rule (6.3) checking. */{ /* Write your local variable definition here */ /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/ PE_low_level_init(); /*** End of Processor Expert internal initialization. ***/ if (FRTOS1_xTaskCreate( Task1, /* pointer to the task */ (signed portCHAR *)"Task1", /* task name for kernel awareness debugging */ configMINIMAL_STACK_SIZE, /* task stack size */ (void*)NULL, /* optional task startup argument */ tskIDLE_PRIORITY, /* initial priority */ (xTaskHandle*)NULL /* optional task handle to create */ ) != pdPASS) { /*lint -e527 */ for(;;){}; /* error! probably out of memory */ /*lint +e527 */ } if (FRTOS1_xTaskCreate( Task2, /* pointer to the task */ (signed portCHAR *)"Task2", /* task name for kernel awareness debugging */ configMINIMAL_STACK_SIZE, /* task stack size */ (void*)NULL, /* optional task startup argument */ tskIDLE_PRIORITY, /* initial priority */ (xTaskHandle*)NULL /* optional task handle to create */ ) != pdPASS) { /*lint -e527 */ for(;;){}; /* error! probably out of memory */ /*lint +e527 */ } /*** Don't write any code pass this line, or it will be deleted during code generation. ***/ /*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/ #ifdef PEX_RTOS_START PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */ #endif /*** End of RTOS startup code. ***/ /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/ for(;;){} /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:SchumyAlex,项目名称:mcuoneclipse,代码行数:45,
示例12: SHELL_Initvoid SHELL_Init(void) {#if !CLS1_DEFAULT_SERIAL && PL_HAS_BLUETOOTH (void)CLS1_SetStdio(&BT_stdio); /* use the Bluetooth stdio as default */#endif#if PL_HAS_RTOS if (FRTOS1_xTaskCreate(ShellTask, "Shell", configMINIMAL_STACK_SIZE+100, NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ }#endif}
开发者ID:Bentheman90,项目名称:intro_thomas-the-engine,代码行数:10,
示例13: REMOTE_Init/*! /brief Initializes module */void REMOTE_Init(void) { REMOTE_isOn = FALSE; REMOTE_isVerbose = FALSE; REMOTE_useJoystick = TRUE;#if PL_CONFIG_CONTROL_SENDER if (FRTOS1_xTaskCreate(RemoteTask, "Remote", configMINIMAL_STACK_SIZE+50, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ }#endif}
开发者ID:Naerrci,项目名称:INTRO_FC-Gring,代码行数:11,
示例14: ACCEL_StartOrientationTaskvoid ACCEL_StartOrientationTask(void) {#if PL_HAS_HW_ACCELEROMETER ACCEL1_CalibrateZ1g(); /* assume device is flat during reset/power-up */ //ACCEL1_CalibrateX1g(); /* flat on switch side */ //ACCEL1_CalibrateY1g(); /* flat on LCD side */#endif#if PL_HAS_ACCEL_ORIENT FRTOS1_xTaskCreate(TaskAccelOrientation, (signed portCHAR *)"AccelOrient", configMINIMAL_STACK_SIZE+50, NULL, tskIDLE_PRIORITY+1, &xHandleTaskAccelOrientation);#endif}
开发者ID:danieljabad,项目名称:mcuoneclipse,代码行数:10,
示例15: REF_Initvoid REF_Init(void) { mutexHandle = FRTOS1_xSemaphoreCreateMutex(); if (mutexHandle==NULL) { for(;;); } timerHandle = TU1_Init(NULL); InitSensorValues(); if (FRTOS1_xTaskCreate(ReflTask, (signed portCHAR *)"Refl", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ }}
开发者ID:gsgill112,项目名称:mcuoneclipse,代码行数:11,
示例16: HOST_Initvoid HOST_Init(void) {#if ONLY_HOST FsMSD1_HostInit(); HOST_Run();#else FsMSD1_HostInit(); if (FRTOS1_xTaskCreate(HostTask, (signed portCHAR *)"Host", configMINIMAL_STACK_SIZE+100, NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ }#endif}
开发者ID:3ben1189,项目名称:mcuoneclipse,代码行数:11,
示例17: PLR_Initvoid PLR_Init(void) { //feedSem = FRTOS1_xSemaphoreCreateRecursiveMutex(); blinky_light_ClrVal(); if (FRTOS1_xTaskCreate(playerTask, "Player", configMINIMAL_STACK_SIZE+200, NULL, tskIDLE_PRIORITY+3, NULL) != pdPASS) { for (;;) { } /* error */ } //FRTOS1_vQueueAddToRegistry(feedSem, "feedSem");}
开发者ID:danstadelmann,项目名称:BDA_Buzzer,代码行数:11,
示例18: mainvoid main(void){ /* Write your local variable definition here */ PEX_RTOS_INIT(); /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/ PE_low_level_init(); /*** End of Processor Expert internal initialization. ***/ if (FRTOS1_xTaskCreate( Task1, /* pointer to the task */ (signed portCHAR *)"Task1", /* task name for kernel awareness debugging */ configMINIMAL_STACK_SIZE, /* task stack size */ (void*)NULL, /* optional task startup argument */ tskIDLE_PRIORITY, /* initial priority */ (xTaskHandle*)NULL /* optional task handle to create */ ) != pdPASS) { /*lint -e527 */ for(;;){}; /* error! probably out of memory */ /*lint +e527 */ } if (FRTOS1_xTaskCreate( Task2, /* pointer to the task */ (signed portCHAR *)"Task2", /* task name for kernel awareness debugging */ configMINIMAL_STACK_SIZE, /* task stack size */ (void*)NULL, /* optional task startup argument */ tskIDLE_PRIORITY, /* initial priority */ (xTaskHandle*)NULL /* optional task handle to create */ ) != pdPASS) { /*lint -e527 */ for(;;){}; /* error! probably out of memory */ /*lint +e527 */ } FRTOS1_vTaskStartScheduler(); /*** Don't write any code pass this line, or it will be deleted during code generation. ***/ /*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/ for(;;){} /*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:andrewytiger,项目名称:mcuoneclipse,代码行数:41,
示例19: APP_Runvoid APP_Run(void) { if (FRTOS1_xTaskCreate(MainTask, (signed portCHAR *)"Main", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ } //(void)RTOSTICK1_Enable(); //FRTOS1_taskENABLE_INTERRUPTS(); for(;;) { LED1_Neg(); WAIT1_Waitms(1000); } FRTOS1_vTaskStartScheduler();}
开发者ID:3ben1189,项目名称:mcuoneclipse,代码行数:12,
示例20: APP_Start/*! /brief Function for starting the Application. Inits and Start the RTOS */void APP_Start(void) { PL_Init(); /* platform initialization */ EVNT_SetEvent(EVNT_INIT); /* set initial event */ //Create application Task if (FRTOS1_xTaskCreate(APPTask, (signed portCHAR *)"APP_Task", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ } RTOS_Run();}
开发者ID:tbmathis,项目名称:SUMO,代码行数:13,
示例21: RTOS_Initvoid RTOS_Init(void) { if (FRTOS1_xTaskCreate(T1, (signed portCHAR *)"T1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ } if (FRTOS1_xTaskCreate(App_loop, (signed portCHAR *)"App_loop", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ }#if PL_HAS_LINE_SENSOR if (FRTOS1_xTaskCreate(CheckReflactance, (signed portCHAR *)"CheckReflactance", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &checkRefl) != pdPASS) { for(;;){} /* error */ }#endif#if PL_HAS_REMOTE if (FRTOS1_xTaskCreate(Remote, (signed portCHAR *)"Remote", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &remoteTask) != pdPASS) { for(;;){} /* error */ }#endif#if PL_HAS_FIGHT if(FRTOS1_xTaskCreate(Fight_modus,(signed portCHAR *) "Fight_m", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &fightTask) != pdPASS) { for(;;){} /* error */ }#endif#if PL_HAS_ACCEL && PL_IS_ROBO if(FRTOS1_xTaskCreate(AccelObserv,(signed portCHAR *) "AccelObserv", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) { for(;;){} /* error */ }#endif}
开发者ID:chregubr85,项目名称:42,代码行数:32,
示例22: RTOS_Startvoid RTOS_Start(void) { if (FRTOS1_xTaskCreate( MyTask, /* pointer to the task */ (signed portCHAR *)"MyTask", /* task name for kernel awareness debugging */ configMINIMAL_STACK_SIZE, /* task stack size */ (void*)NULL, /* optional task startup argument */ tskIDLE_PRIORITY, /* initial priority */ (xTaskHandle*)NULL /* optional task handle to create */ ) != pdPASS) { for(;;){}; /* error! probably out of memory */ } FRTOS1_vTaskStartScheduler();}
开发者ID:210221030,项目名称:mcuoneclipse,代码行数:13,
示例23: PONG_Initvoid PONG_Init(void) { if (FRTOS1_xTaskCreate( PongTask, /* pointer to the task */ "Pong", /* task name for kernel awareness debugging */ configMINIMAL_STACK_SIZE, /* task stack size */ (void*)NULL, /* optional task startup argument */ tskIDLE_PRIORITY+2, /* initial priority */ (xTaskHandle*)NULL /* optional task handle to create */ ) != pdPASS) { /*lint -e527 */ for(;;){}; /* error! probably out of memory */ /*lint +e527 */ }}
开发者ID:ADeadCat,项目名称:mcuoneclipse,代码行数:14,
示例24: MM_Initvoid MM_Init(void) { if (FRTOS1_xTaskCreate( MidiPlayTask, /* pointer to the task */ "MidiPlay", /* task name for kernel awareness debugging */ configMINIMAL_STACK_SIZE, /* task stack size */ (void*)NULL, /* optional task startup argument */ tskIDLE_PRIORITY+1, /* initial priority */ &MidiPlayTaskHandle /* optional task handle to create */ ) != pdPASS) { /*lint -e527 */ for(;;){} /* error! probably out of memory */ /*lint +e527 */ }}
开发者ID:Johnnygx,项目名称:mcuoneclipse,代码行数:14,
示例25: SHELL_Initvoid SHELL_Init(void) {#if PL_HAS_RTOS_TRACE Ptrc1_vTraceSetQueueName(CLS1_GetSemaphore(), "Shell_Sem");#endif#if !PL_HAS_RTOS buf[0] = '/0'; (void)CLS1_ParseWithCommandTable((unsigned char*)CLS1_CMD_HELP, CLS1_GetStdio(), CmdParserTable);#endif#if PL_HAS_RTOS if (FRTOS1_xTaskCreate(ShellTask, (signed portCHAR *)"Shell", configMINIMAL_STACK_SIZE+200, NULL, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;) {} /* error */ }#endif}
开发者ID:julioefajardo,项目名称:mcuoneclipse,代码行数:14,
示例26: portTASK_FUNCTIONstatic portTASK_FUNCTION(vMasterTask, pvParameters) { /*! /todo Implement functionality */ xSemaphoreHandle sem = NULL; (void)pvParameters; /* parameter not used */ sem = FRTOS1_xSemaphoreCreateBinary(); if (sem==NULL) { /* semaphore creation failed */ for(;;){} /* error */ } FRTOS1_vQueueAddToRegistry(sem, "IPC_Sem"); /* create slave task */ if (FRTOS1_xTaskCreate(vSlaveTask, "Slave", configMINIMAL_STACK_SIZE, sem, tskIDLE_PRIORITY+1, NULL) != pdPASS) { for(;;){} /* error */ } if (FRTOS1_xTaskCreate(vSlaveTask2, "Slave", configMINIMAL_STACK_SIZE, sem, tskIDLE_PRIORITY+2, NULL) != pdPASS) { for(;;){} /* error */ } for(;;) { if (sem != NULL) { /* valid semaphore? */ (void)xSemaphoreGive(sem); /* give control to other task */ FRTOS1_vTaskDelay(1000/portTICK_RATE_MS); } }}
开发者ID:cknuesel,项目名称:INTRO_Maze_it,代码行数:24,
示例27: DRV_Initvoid DRV_Init(void) { DRV_Status.mode = DRV_MODE_NONE; DRV_Status.speed.left = 0; DRV_Status.speed.right = 0; DRV_Status.pos.left = 0; DRV_Status.pos.right = 0; DRV_Queue = FRTOS1_xQueueCreate(QUEUE_LENGTH, QUEUE_ITEM_SIZE); if (DRV_Queue==NULL) { for(;;){} /* out of memory? */ } FRTOS1_vQueueAddToRegistry(DRV_Queue, "Drive"); if (FRTOS1_xTaskCreate(DriveTask, "Drive", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY+3, NULL) != pdPASS) { for(;;){} /* error */ }}
开发者ID:sisem,项目名称:intro,代码行数:15,
示例28: ACCEL_StartDemoTaskvoid ACCEL_StartDemoTask(ACCEL_WindowDesc *desc) { UI1_PixelDim yPos, h; UI1_CreateScreen(&desc->screen, UI1_COLOR_WHITE); (void)UI1_CreateWindow(&desc->screen, &desc->window, UI1_COLOR_BRIGHT_GREEN, 0, 0, UI1_GetWidth(), UI1_GetHeight()); (void)UI1_CreateHeader(&desc->window, &desc->header, (unsigned char*)"Accelerometer", FONT, UI1_COLOR_BLUE); UI1_ChangeTextFgColor(&desc->header.element, UI1_COLOR_WHITE); UI1_SetWindowEventCallback(&desc->window, accelW_WindowCallback); /* Icon: Close */ h = (UI1_PixelDim)(UI1_GetElementHeight(&desc->header)); (void)UI1_CreateIcon(&desc->window, &desc->iconClose, 1, 1, (UI1_PixelDim)(h-2), (UI1_PixelDim)(h-2), UI1_ICON_CLOSE); desc->iconClose.element.prop.flags |= UI1_FLAGS_ALIGN_RIGHT; UI1_OnWindowResize(&desc->window); /* right align element(s) if needed */ UI1_ChangeElementColor(&desc->iconClose, UI1_COLOR_BLUE); UI1_ChangeIconFgColor(&desc->iconClose, UI1_COLOR_WHITE); UI1_EnableElementSelection(&desc->iconClose); yPos = (UI1_PixelDim)(UI1_GetElementPosY(&desc->window)+UI1_GetElementHeight(&desc->header)+5); /* barGraph */ desc->data[0] = 0; desc->data[1] = 0; desc->data[2] = 0; (void)UI1_CreateBarGraph(&desc->window, &desc->accelBarGraph, 5, yPos, 170, 170, UI1_COLOR_BRIGHT_GREEN, (byte*)&desc->data, sizeof(desc->data), UI1_COLOR_RED, /* bar color */ 1, /* border width */ UI1_COLOR_BLACK, /* border color */ 5 /* border space */ ); yPos = (UI1_PixelDim)(UI1_GetElementPosY(&desc->accelBarGraph)+UI1_GetElementHeight(&desc->accelBarGraph)+5); /* X */ desc->txtBufX[0] = '/0'; (void)UI1_CreateText(&desc->window, &desc->txtX, 5, yPos, 0, 0, &desc->txtBufX[0], FONT); /* Y */ desc->txtBufY[0] = '/0'; (void)UI1_CreateText(&desc->window, &desc->txtY, 58, yPos, 0, 0, &desc->txtBufY[0], FONT); /* Z */ desc->txtBufZ[0] = '/0'; (void)UI1_CreateText(&desc->window, &desc->txtZ, 110, yPos, 0, 0, &desc->txtBufZ[0], FONT); UIG1_CreateGraph(&desc->window, &desc->graph, (UI1_PixelDim)(UI1_GetElementPosX(&desc->accelBarGraph)+UI1_GetElementWidth(&desc->accelBarGraph)+10), UI1_GetElementPosY(&desc->accelBarGraph), 125, UI1_GetElementHeight(&desc->accelBarGraph)); /* update the screen */ UI1_UpdateScreen(&desc->screen); FRTOS1_xTaskCreate(TaskAccelDemo, (signed portCHAR *)"Accel", configMINIMAL_STACK_SIZE+50, desc, tskIDLE_PRIORITY+1, NULL);}
开发者ID:danieljabad,项目名称:mcuoneclipse,代码行数:48,
注:本文中的FRTOS1_xTaskCreate函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ FR_CONF_OFFSET函数代码示例 C++ FRTOS1_vTaskDelay函数代码示例 |