From: travisutk Date: Thu, 3 Feb 2011 21:50:54 +0000 (+0000) Subject: MSP430 app maintenance. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=75c003d3ea88663bef3bd54535a228a1d814518f;hp=236b90b4447c8c17b0f351c22b4c2635c8e376d7 MSP430 app maintenance. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@873 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFETMSP430.py b/client/GoodFETMSP430.py index ac9ab74..933e7dc 100644 --- a/client/GoodFETMSP430.py +++ b/client/GoodFETMSP430.py @@ -11,7 +11,8 @@ from GoodFET import GoodFET; class GoodFETMSP430(GoodFET): APP=0x11; - MSP430APP=0x11; #Changed by inheritors. + MSP430APP=0x11; #Changed by inheritors. + MSP430X2APP=0x16; #Changed by inheritors. CoreID=0; DeviceID=0; JTAGID=0; @@ -25,12 +26,12 @@ class GoodFETMSP430(GoodFET): self.writecmd(self.MSP430APP,0x21,0,self.data); def MSP430coreid(self): - """Get the Core ID.""" + """Get the Core ID. (MSP430X2 only?)""" self.writecmd(self.MSP430APP,0xF0); CoreID=ord(self.data[0])+(ord(self.data[1])<<8); return CoreID; def MSP430deviceid(self): - """Get the Device ID.""" + """Get the Device ID. (MSP430X2 only?)""" self.writecmd(self.MSP430APP,0xF1); DeviceID=( ord(self.data[0])+(ord(self.data[1])<<8)+