KL03 RTOS Startup code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KL03 RTOS Startup code

Jump to solution
935 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
736 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
737 Views
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 Kudos
Reply