diff --git a/firmware/util/crc.h b/firmware/util/crc.h index 4c5a77dd8d..169d778b94 100644 --- a/firmware/util/crc.h +++ b/firmware/util/crc.h @@ -1,27 +1,27 @@ -/** - * @file crc.h - * - * @date Sep 20, 2013 - * @author Andrey Belomutskiy, (c) 2012-2017 - */ - -#ifndef CRC_H_ -#define CRC_H_ - -#include "stdint.h" - -typedef unsigned char crc_t; - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -crc_t calc_crc(const crc_t message[], int nBytes); -uint32_t crc32(const void *buf, uint32_t size); -uint32_t crc32inc(const void *buf, uint32_t crc, uint32_t size); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* CRC_H_ */ +/** + * @file crc.h + * + * @date Sep 20, 2013 + * @author Andrey Belomutskiy, (c) 2012-2017 + */ + +#ifndef CRC_H_ +#define CRC_H_ + +#include "stdint.h" + +typedef unsigned char crc_t; + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +crc_t calc_crc(const crc_t message[], int nBytes); +uint32_t crc32(const void *buf, uint32_t size); +uint32_t crc32inc(const void *buf, uint32_t crc, uint32_t size); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* CRC_H_ */