projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More work toward an AVR port.
[goodfet]
/
client
/
goodfet.em260
diff --git
a/client/goodfet.em260
b/client/goodfet.em260
index
c792bf6
..
ba383dc
100755
(executable)
--- a/
client/goodfet.em260
+++ b/
client/goodfet.em260
@@
-3,8
+3,17
@@
#GoodFET SPI Flash Client
#by Travis Goodspeed
#GoodFET SPI Flash Client
#by Travis Goodspeed
-#N.B.,
-#Might be Winbond W25x80-specific.
+# Pinout:
+# 1 MISO
+# 2 VCC
+# 3 MOSI
+# 4
+# 5 !SS
+# 6
+# 7 CLK
+# 8 !HOST_INT
+# 9 GND
+# 11 !WAKE
import sys;
import binascii;
import sys;
import binascii;
@@
-49,11
+58,19
@@
if(sys.argv[1]=="test"):
for foo in range(0,4):
print "%04x" % client.rand16();
if(sys.argv[1]=="randtest"):
for foo in range(0,4):
print "%04x" % client.rand16();
if(sys.argv[1]=="randtest"):
- print "
Some random numbers from EZSP.
"
+ print "
Even Odd HEven LEven Hodd Lodd
"
max=2**33;
foo=0;
while foo<max:
max=2**33;
foo=0;
while foo<max:
- print "%08x: %04x" % (foo,client.rand16());
+ even=client.rand16();
+ odd=client.rand16();
+ print "%8i %8i %8i %8i %8i %8i" % (
+ even,
+ odd,
+ even>>8,
+ even&0xFF,
+ odd>>8,
+ odd&0xFF);
sys.stdout.flush()
foo=foo+1;
sys.stdout.flush()
foo=foo+1;