Page 1 of 1

Applying mods to predef.h & constant.h to one project only

Posted: Thu Jun 04, 2009 8:38 pm
by Ridgeglider
I occasionally modify constants.h or predef.h to suit the needs of a particular project. For example to edit predef.h to #define UCOS_STACKCHECK as (1) or #define UCOS_TASKLIST (1) to turn on stack-checking or taskmonitor. Similary, I might change the ethernet or serial buffer sizes in constants.h.

When I do this, I rebuild all the system files and the changes take effect for all subsequent projects I create. However sometimes these modifications are different from project to project. Is there a way to associate them on a project by project basis? I've tried placing the modified copies in the Eclipse folders, but, as suspected, that doesn't seem to work. Is there a way to accomplish this? If so, I'd be very interested in a way to record this info so it's retained as needed in individual projects.

Thanks