Added APP number to GoodFETSPI.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sat, 24 Nov 2012 14:17:31 +0000 (14:17 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sat, 24 Nov 2012 14:17:31 +0000 (14:17 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1349 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETSPI.py

index c303b21..b071d50 100644 (file)
@@ -10,6 +10,7 @@ import sys, time, string, cStringIO, struct, glob, os;
 from GoodFET import GoodFET;
 
 class GoodFETSPI(GoodFET):
+    APP=0x01;
     def SPIsetup(self):
         """Move the FET into the SPI application."""
         self.writecmd(0x01,0x10,0,self.data); #SPI/SETUP