#include #include #include void chksum(avrChksum* chksum,void* block,uint8_t len) { uint8_t p; uint8_t *b = (uint8_t*)block; if (chksum == NULL) return; chksum->combined = 0x00; for (p=0;psum8 += b[p]; chksum->xor8 ^= b[p]; }; };