Thanks for your reply, Daniel.
I have gone through the cosmic source code, and I found it was using an OSEK RTOS. Here my doubt is, if I want to use it in newly created CodeWarrior project, can I use the generated files from previous project? if not, I have seen an option to add OSEK support during project creation in CodeWarrior, will it help? OSEK is part of CodeWarrior, or should we use external libraries for it?
Thanks