X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.em260;h=ba383dc7c32a60be10ebde05dbb85c782d6456f3;hp=46417d64e3177ecc3f5ed2cfab3ea58a0c02654e;hb=0a6754712a364a01d149dc518f44b258a3a37cf8;hpb=d0fa0ff8feea29fa75da4003cfc152947571d7a2 diff --git a/client/goodfet.em260 b/client/goodfet.em260 index 46417d6..ba383dc 100755 --- a/client/goodfet.em260 +++ b/client/goodfet.em260 @@ -3,8 +3,17 @@ #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; @@ -49,13 +58,19 @@ if(sys.argv[1]=="test"): for foo in range(0,4): print "%04x" % client.rand16(); if(sys.argv[1]=="randtest"): - print "# Even Odd" + print "Even Odd HEven LEven Hodd Lodd " max=2**33; foo=0; while foo>8, + even&0xFF, + odd>>8, + odd&0xFF); sys.stdout.flush() foo=foo+1;