Author: stepan Date: 2009-11-19 20:58:34 +0100 (Thu, 19 Nov 2009) New Revision: 53
Modified: trunk/SerialICE/io.h trunk/SerialICE/serialice.h trunk/SerialICE/types.h Log: Add include file guards... Not needed but good style.
Modified: trunk/SerialICE/io.h =================================================================== --- trunk/SerialICE/io.h 2009-11-19 19:26:18 UTC (rev 52) +++ trunk/SerialICE/io.h 2009-11-19 19:58:34 UTC (rev 53) @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef IO_H +#define IO_H + /* Memory functions */
static inline u8 read8(unsigned long addr) @@ -189,5 +192,4 @@ return edx; }
- - +#endif
Modified: trunk/SerialICE/serialice.h =================================================================== --- trunk/SerialICE/serialice.h 2009-11-19 19:26:18 UTC (rev 52) +++ trunk/SerialICE/serialice.h 2009-11-19 19:58:34 UTC (rev 53) @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef SERIALICE_H +#define SERIALICE_H + #include "config.h"
#define ECHO_MODE 1 @@ -25,3 +28,4 @@ #define SIO_PORT CONFIG_SERIAL_PORT #define MAINBOARD CONFIG_BOARD_INIT
+#endif
Modified: trunk/SerialICE/types.h =================================================================== --- trunk/SerialICE/types.h 2009-11-19 19:26:18 UTC (rev 52) +++ trunk/SerialICE/types.h 2009-11-19 19:58:34 UTC (rev 53) @@ -17,7 +17,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef TYPES_H +#define TYPES_H + typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32;
+#endif