KL03 RTOS Startup code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KL03 RTOS Startup code

跳至解决方案
937 次查看
ericeckenrode
Contributor I

Hi,

I have a question about the below code in my KL03 project.

I'm not using an RTOS.  In this case is it ok to remove the code?

 

 

/*

  ** 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!!! ***/

 

/* END main */

/*!

** @}

*/

 

Thanks,

Eric

标签 (1)
0 项奖励
回复
1 解答
738 次查看
BlackNight
NXP Employee
NXP Employee

If you don't have an RTOS (like FreeRTOS or MQX) added to the project as Processor Expert component, then you can remove that

PEX_RTOS_START();  

And if you have anyway an RTOS, simply start it yourself like with vTaskStartScheduler() in FreeRTOS.

Erich

在原帖中查看解决方案

0 项奖励
回复
1 回复
739 次查看
BlackNight
NXP Employee
NXP Employee

If you don't have an RTOS (like FreeRTOS or MQX) added to the project as Processor Expert component, then you can remove that

PEX_RTOS_START();  

And if you have anyway an RTOS, simply start it yourself like with vTaskStartScheduler() in FreeRTOS.

Erich

0 项奖励
回复