Compile-Time Constants For I/O conversion

In several design reviews I've run across code that looks something like this.unsigned int VoltLimitMin =  122;   /* 3.30 Volts */unsigned int VoltLimitMax = 179;   /* 5.10 Volts */unsigned int VoltLimitTrip =  205;   /* 5.55 Volts */The purpose of this code is to...

Proper use of .h and .c files

I recently worked with some embedded system teams who were struggling with the best way to use .c and .h files for their source code. As I was doing this, I remembered that back when I was learning how to program that it took me quite a while to figure all this out too!  So, here are some guidelines...