diff options
Diffstat (limited to 'platform/lpc15xx/lpccheck.py')
-rwxr-xr-x | platform/lpc15xx/lpccheck.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/platform/lpc15xx/lpccheck.py b/platform/lpc15xx/lpccheck.py deleted file mode 100755 index 495515d1..00000000 --- a/platform/lpc15xx/lpccheck.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python - -import sys, os, struct - -if len(sys.argv) < 2: - print "not enough args, usage:" - print "%s <binfile>" % sys.argv[0] - sys.exit(1) - -f = open(sys.argv[1], "r+b") - -a = struct.unpack('iiiiiii', f.read(7*4)) - -s = 0 -for i in a: - s += i -s = -s - -f.seek(7*4) -f.write(struct.pack('i', s)) - -f.close() - |