projects
/
fw
/
sdcc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yes, let's find the beast
[fw/sdcc]
/
device
/
examples
/
crcs.c
1
#include <reg51.h>
2
typedef unsigned char byte;
3
4
byte accum_checksum(byte cs, byte val)
5
{
6
register unsigned char tmp;
7
8
tmp = ((cs<<1) | (cs>>7)) + val;
9
10
return (CY ? ( tmp + 1 ) : tmp);
11
}