KL03 RTOS Startup code

cancel
Showing results for 
Search instead for 
Did you mean: 

KL03 RTOS Startup code

Jump to solution
349 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
1 Solution
150 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
1 Reply
151 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