added tiwrite command, split LF code from appmain into lfops.c

This commit is contained in:
d18c7db committed 2009-07-25 11:47:43 +00:00
1 parent 431ae7e0eb
commit 9bea179a71
8 files changed
+1136 -961

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
unsigned short update_crc16( WORD crc, BYTE c ) {
WORD update_crc16( WORD crc, BYTE c ) {
WORD i, v, tcrc = 0;
v = (crc ^ c) & 0xff;
@@ -7,5 +7,5 @@ unsigned short update_crc16( WORD crc, BYTE c ) {
v >>= 1;
}
return (crc >> 8) ^ tcrc;
return ((crc >> 8) ^ tcrc)&0xffff;
}