X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETAVR.py;h=ee5b1807c01b926bbb68aa27ca30bc1d62eac5c4;hp=52f82ba7ae5e82d39573af3baa3b655e900fd89c;hb=610bfc6b26a4c800e495d29b504df702b75b6a3b;hpb=43d125b5bca16f0941450bee6ba7bd94ab41dc72 diff --git a/client/GoodFETAVR.py b/client/GoodFETAVR.py index 52f82ba..ee5b180 100644 --- a/client/GoodFETAVR.py +++ b/client/GoodFETAVR.py @@ -25,6 +25,7 @@ class GoodFETAVR(GoodFET): 0x9007: "tiny13", 0x9108: "tiny25", 0x930B: "tiny85", + 0x9206: "tiny45", 0x9001: "S1200", @@ -73,6 +74,11 @@ class GoodFETAVR(GoodFET): """Read the target's lockbits.""" self.writecmd(self.AVRAPP,0x82,0,None); return ord(self.data[0]); + def setlockbits(self,bits=0x00): + """Read the target's lockbits.""" + self.writecmd(self.AVRAPP,0x92,1,[bits]); + return self.lockbits(); + def eeprompeek(self, adr): """Read a byte of the target's EEPROM.""" self.writecmd(self.AVRAPP,0x81 ,2, @@ -111,4 +117,4 @@ class GoodFETAVR(GoodFET): if device==None: device=("0x%04x" % deviceid); - return device; + return "%s %s" % (vendor,device);