MSP430 app maintenance.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 3 Feb 2011 21:50:54 +0000 (21:50 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 3 Feb 2011 21:50:54 +0000 (21:50 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@873 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETMSP430.py

index ac9ab74..933e7dc 100644 (file)
@@ -11,7 +11,8 @@ from GoodFET import GoodFET;
 
 class GoodFETMSP430(GoodFET):
     APP=0x11;
 
 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;
     CoreID=0;
     DeviceID=0;
     JTAGID=0;
@@ -25,12 +26,12 @@ class GoodFETMSP430(GoodFET):
         self.writecmd(self.MSP430APP,0x21,0,self.data);
     
     def MSP430coreid(self):
         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):
         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)+
         self.writecmd(self.MSP430APP,0xF1);
         DeviceID=(
             ord(self.data[0])+(ord(self.data[1])<<8)+