11th feb i2c checking chaitu's code
Dependencies: SimpleDMA eeprom mbed-rtos mbed
Fork of CDMS_CODE_FM_28JAN2017 by
Diff: crc.h
- Revision:
- 206:fba4aeebf004
- Parent:
- 6:79d422d1ed42
--- a/crc.h Wed Jun 29 14:17:34 2016 +0000 +++ b/crc.h Thu Jun 30 14:00:33 2016 +0000 @@ -7,7 +7,7 @@ #define POLYNOMIAL16 0x1021 #define POLYNOMIAL8 0x07 -typedef uint16_t crctype16; +typedef uint16_t crctype16; crctype16 crc16_gen(const unsigned char message[], unsigned int nBytes){ crctype16 remainder = 0xffff; int byte;