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
已解决! 转到解答。
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
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