Question to portable.h

Posted by SimFr on October 13, 2008
Hi,

I ported the FreeRTOS to Freescales MPC5516 using the CodeWarrior IDE.

In portable.h I would like to include an entry like:

#ifdef MPC5516_CODEWARRIOR
#include "../../Source/portable/CodeWarrior/MPC5516/portmacro.h"
#endif

Where do I define MPC5516_CODEWARRIOR best? Is a define with

#ifndef MPC5516_CODEWARRIOR
#define MPC5516_CODEWARRIOR

okay?

Thank you very much.

Best regards,

SimFr


RE: Question to portable.h

Posted by Richard on October 13, 2008
The normal place to do it is within the project settings (in CodeWarrior), under pre-processor. You can add #define MPC5516_CODEWARRIOR. I think you could also place the definition in FreeRTOSConfig.h for the same effect.

I would very much like a copy of your port. Did you base it on the Xilinx PPC port? Could you send it to r (dot) barry =at= freertos.org - thanks.

Regards.

RE: Question to portable.h

Posted by SimFr on October 14, 2008
Thank you for your answer.

Of course, I will send you a copy of the port as soon as the port is done. I have to do some small adjustments, but the kernel and an interrupt handler is running on the MPC5516.

Best regards

SimFr