I am designing a project using the Keil C51 V7.50 and uVision 3 IDE V3.10a on a Silicon Labs C8051F046 MCU. My project contains source file foo.c, which contains a directive:
#include "foo.h"
============================================================ Gary Lynch | To send mail, change no$pam in lynchg@no$pam.com | my domain name to stacoenergy
Of course I'll sometimes reuse a file name. (Directories exist to allow hierarchical, compound file names.) In particular, I have a file with my favorite conventions for typedefs and such U8, U16, TRUE, etc), which has to be adapted to any particular compiler and processor. But this file always has the same name in different projects. I NEVER reuse a name. All project specific files start with 2 capital letters that identify the project. Files used across projects reside in a separate directory and do not have the preface to the filename. Erik
.. continuation ... There is NOTHING more dangerous than having identical files in several places. You update and miss one of them and then, a year later, you spend days debugging because you "knew" that the missed file was updated. Erik