Hello
Here I would advise you to contact whoever did generate that project. The problem is not related to CodeWarrior or Processor Expert, but with the project you are using.
I do not understand what the person, who has generated the project did try to achieve here, but modifying
ProcessorExpert generated code is a very bad idea.
Also merging content from several modules created by ProcessorExpert is a very bad idea.
There are a lot of functions which are implemented in 2 modules (for some reasons).
I would recommend you to remove the file IO_Ports.c from the project, also remove file rs485_rs232.c from the project.
Also for some reason, content from several modules have been merged in events.c. I do not understand what is the reasoning behind that.
So I would suggest you to contact the creator of the project and ask him to provide a fixed version of his project.
CrasyCat