1 --- stmbl.c.oryg 2012-06-13 15:01:49.000000000 +0200
2 +++ stmbl.c 2012-06-13 15:12:51.000000000 +0200
4 printf(" chk = %x\n", checksum);
7 - write(stmbl.device, &prefix_byte, 1);
8 + rval = write(stmbl.device, &prefix_byte, 1);
9 rval = write(stmbl.device, buf, size);
10 return rval + write(stmbl.device, &checksum, 1);
13 int stmblRecv(uint8_t* buf, unsigned int size)
19 while( rsize < size ) {
20 // Look whether there are still pending bytes in the buffer
23 int stmblGetVersionNprotection()
35 if (size > 256) return STMBL_ERR_SIZE;
36 if (!stmblCmdAvail(0x11)) return STMBL_ERR_INVALIDCMD;
39 int stmblWriteProtect()
45 int stmblWriteUnprotect()
51 int stmblReadoutProtect()
57 int stmblReadoutUnprotect()
61 --- Makefile~ 2012-06-13 15:17:22.000000000 +0200
62 +++ Makefile 2012-06-13 15:17:22.000000000 +0200
68 +DESTDIR=/usr/local/bin
70 # Do the stuff as specified above.
73 $(CC) -o $@ $(CFLAGS) $(OBJ) $(LIBS)
76 - install armst /usr/local/bin
77 + install -p armst $(DESTDIR)