X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETCC.py;h=19e273165a24f7029b36184d32887c61f85b7a31;hp=456f5c6aaf88c82753a221be4cce29f4a720c2ed;hb=8f024cc02ed60aaca66ecca2de8d56ca1dfd2c9e;hpb=83a29da6187d81430105b48abee72b7a59084369 diff --git a/client/GoodFETCC.py b/client/GoodFETCC.py index 456f5c6..19e2731 100644 --- a/client/GoodFETCC.py +++ b/client/GoodFETCC.py @@ -63,9 +63,14 @@ class GoodFETCC(GoodFET): print "%-10s=0x%02x; /* %-50s */" % ( name,self.CCpeekdatabyte(eval(address)), description); if bitfields!="": print bitfields.rstrip(); + def halt(self): + """Halt the CPU.""" + self.CChaltcpu(); def CChaltcpu(self): """Halt the CPU.""" self.writecmd(self.APP,0x86,0,self.data); + def resume(self): + self.CCreleasecpu(); def CCreleasecpu(self): """Resume the CPU.""" self.writecmd(self.APP,0x87,0,self.data);