• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ FRTOS1_xTaskCreate函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: APP_Start

void 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,代码来源:Application.c


示例2: APP_Run

void 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,代码来源:Application.c


示例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,代码来源:Sem.c


示例4: REF_Init

void 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,代码来源:Reflectance.c


示例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,代码来源:Sem.c


示例6: APP_Start

void 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,代码来源:Application.c


示例7: APPFRDM_Init

void APPFRDM_Init(void)
{
	 if (FRTOS1_xTaskCreate(T3, (signed portCHAR *)"T3", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS)
	 {
	     for(;;){}
	 }

}
开发者ID:Jack67,项目名称:Sumobot,代码行数:8,代码来源:AppFrdm.c


示例8: BLEUART_CMDMODE_Init

void 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,代码来源:bleuart_cmdmode.c


示例9: StateMachine_Init

void 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,代码来源:StateMachine.c


示例10: RTOS_Init

void 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,代码来源:RTOS.c


示例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,代码来源:ProcessorExpert.c


示例12: SHELL_Init

void 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,代码来源:Shell.c


示例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,代码来源:Remote.c


示例14: ACCEL_StartOrientationTask

void 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,代码来源:Accelerometer.c


示例15: REF_Init

void 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,代码来源:Reflectance.c


示例16: HOST_Init

void 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,代码来源:host.c


示例17: PLR_Init

void 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,代码来源:player.c


示例18: main

void 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,代码来源:ProcessorExpert.c


示例19: APP_Run

void 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,代码来源:Application.c


示例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,代码来源:Application.c



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ FR_CONF_OFFSET函数代码示例发布时间:2022-05-30
下一篇:
C++ FRTOS1_vTaskDelay函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap