From a6f47361665ef07bf5efe63928a93b549c67719d Mon Sep 17 00:00:00 2001 From: andreaskoepke Date: Tue, 27 Feb 2007 14:53:54 +0000 Subject: [PATCH] add include guards --- tos/platforms/eyesIFX/crc.h | 4 ++++ tos/platforms/eyesIFX/lf-crc.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tos/platforms/eyesIFX/crc.h b/tos/platforms/eyesIFX/crc.h index 8d38a48f..ef4c43be 100644 --- a/tos/platforms/eyesIFX/crc.h +++ b/tos/platforms/eyesIFX/crc.h @@ -38,6 +38,8 @@ * @author Andreas Koepke * @author Paul Curtis (pointed out this implementation, which is believed to be public domain) */ +#ifndef CRC_H +#define CRC_H uint16_t crcByte(uint16_t crc, uint8_t b) { crc = (uint8_t)(crc >> 8) | (crc << 8); @@ -47,3 +49,5 @@ uint16_t crcByte(uint16_t crc, uint8_t b) { crc ^= (crc & 0xff) << 5; return crc; } + +#endif diff --git a/tos/platforms/eyesIFX/lf-crc.h b/tos/platforms/eyesIFX/lf-crc.h index 8d38a48f..ef4c43be 100644 --- a/tos/platforms/eyesIFX/lf-crc.h +++ b/tos/platforms/eyesIFX/lf-crc.h @@ -38,6 +38,8 @@ * @author Andreas Koepke * @author Paul Curtis (pointed out this implementation, which is believed to be public domain) */ +#ifndef CRC_H +#define CRC_H uint16_t crcByte(uint16_t crc, uint8_t b) { crc = (uint8_t)(crc >> 8) | (crc << 8); @@ -47,3 +49,5 @@ uint16_t crcByte(uint16_t crc, uint8_t b) { crc ^= (crc & 0xff) << 5; return crc; } + +#endif -- 2.39.2