X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETSPI.py;h=bd28019a0da971fd84eee219572243c85766bb2c;hp=021c7e676369b672a665f76b4e9735a4397eccf9;hb=ed0549956cb25b94cbd1951be718efc1dbfdf1c9;hpb=78f4f21969789bec27a8e2957eb00a87d8756041 diff --git a/client/GoodFETSPI.py b/client/GoodFETSPI.py index 021c7e6..bd28019 100644 --- a/client/GoodFETSPI.py +++ b/client/GoodFETSPI.py @@ -93,16 +93,12 @@ class GoodFETSPIFlash(GoodFETSPI): self.SPIpokebytes(adr,[val]); def SPIpokebytes(self,adr,data): #Used to be 24 bits, BE, not 32 bits, LE. -# adranddata=[(adr&0xFF0000)>>16, -# (adr&0xFF00)>>8, -# adr&0xFF -# ]+data; adranddata=[adr&0xFF, (adr&0xFF00)>>8, (adr&0xFF0000)>>16, 0, #MSB ]+data; - + #print "%06x: poking %i bytes" % (adr,len(data)); self.writecmd(0x01,0x03, len(adranddata),adranddata);