This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc crc.c -std=c99 -o crctest | |
#include <inttypes.h> | |
#include <stdio.h> | |
uint8_t crcTable[256]; | |
uint8_t CalcCRC(uint8_t * buf, uint8_t len); | |
void CRCInit(void); |