From: travisutk Date: Sun, 28 Feb 2010 01:18:09 +0000 (+0000) Subject: Halt and resume standard commands. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=8f024cc02ed60aaca66ecca2de8d56ca1dfd2c9e;ds=sidebyside Halt and resume standard commands. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@365 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/client/GoodFET.py b/client/GoodFET.py index bb6741a..077ee75 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -289,6 +289,10 @@ class GoodFET: return; def status(self): return; + def halt(self): + return; + def resume(self): + return; def flash(self,file): """Flash an intel hex file to code memory.""" print "Flash not implemented."; 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); diff --git a/client/GoodFETConsole.py b/client/GoodFETConsole.py index cf74cf9..84fbd71 100644 --- a/client/GoodFETConsole.py +++ b/client/GoodFETConsole.py @@ -69,6 +69,11 @@ class GoodFETConsole(): def CMDstatus(self,args): print self.client.status(); return; + def CMDhalt(self,args): + print self.client.halt(); + def CMDresume(self,args): + print self.client.resume(); + def CMDpeek(self,args): adr=eval(args[1]); memory="vn";