From 8290f12998b56040fa280acae28ad6671cc7956b Mon Sep 17 00:00:00 2001 From: travisutk Date: Thu, 24 Jan 2013 19:08:35 +0000 Subject: [PATCH] Minor MAXUSB changes, plus packaging scripts for new GoodFETs. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1412 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFETMAXUSB.py | 2 ++ firmware/apps/usb/maxusb.c | 1 + 2 files changed, 3 insertions(+) diff --git a/client/GoodFETMAXUSB.py b/client/GoodFETMAXUSB.py index 3e5bdf4..a9145fd 100644 --- a/client/GoodFETMAXUSB.py +++ b/client/GoodFETMAXUSB.py @@ -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. diff --git a/firmware/apps/usb/maxusb.c b/firmware/apps/usb/maxusb.c index 825d22a..00b5531 100644 --- a/firmware/apps/usb/maxusb.c +++ b/firmware/apps/usb/maxusb.c @@ -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; -- 2.20.1