KL03 RTOS Startup code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KL03 RTOS Startup code

ソリューションへジャンプ
710件の閲覧回数
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 解決策
511件の閲覧回数
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 返信
512件の閲覧回数
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 件の賞賛