X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2FeyesIFX%2Flf-crc.h;h=ef4c43bea7ec2e5f0eb2c65e83fc344192c28f42;hb=a6f47361665ef07bf5efe63928a93b549c67719d;hp=8d38a48f1629a3a9c420bd01592d324b7d6df599;hpb=9e47a9dcfd321aac901d9e5b52699ab12e89f30e;p=tinyos-2.x.git 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