Minor MAXUSB changes, plus packaging scripts for new GoodFETs.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 24 Jan 2013 19:08:35 +0000 (19:08 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 24 Jan 2013 19:08:35 +0000 (19:08 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1412 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETMAXUSB.py
firmware/apps/usb/maxusb.c

index 3e5bdf4..a9145fd 100644 (file)
@@ -245,6 +245,8 @@ class GoodFETMAXUSB(GoodFET):
     def MAXUSBsetup(self):
         """Move the FET into the MAXUSB application."""
         self.writecmd(self.MAXUSBAPP,0x10,0,self.data); #MAXUSB/SETUP
+        self.writecmd(self.MAXUSBAPP,0x10,0,self.data); #MAXUSB/SETUP
+        self.writecmd(self.MAXUSBAPP,0x10,0,self.data); #MAXUSB/SETUP
         print "Connected to MAX342x Rev. %x" % (self.rreg(rREVISION));
         self.wreg(rPINCTL,0x18); #Set duplex and negative INT level.
         
index 825d22a..00b5531 100644 (file)
@@ -43,6 +43,7 @@ void maxusb_setup(){
   SPIDIR|=MOSI+SCK+BIT0; //BIT0 might be SS
   SPIDIR&=~MISO;
   P4DIR&=~TST; //TST line becomes interrupt input.
+  P4DIR&=~BIT7; //GPX pin.
   P2DIR|=RST;
   DIRSS;