projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved board definition from apimote to apimote1 for versioning support.
[goodfet]
/
client
/
GoodFET.py
diff --git
a/client/GoodFET.py
b/client/GoodFET.py
index
e0d575d
..
6fd0f29
100755
(executable)
--- a/
client/GoodFET.py
+++ b/
client/GoodFET.py
@@
-205,7
+205,7
@@
class GoodFET:
self.telosBReset();
elif (os.environ.get("board")=='zolertiaz1' or os.environ.get("board")=='z1'):
self.bslResetZ1();
self.telosBReset();
elif (os.environ.get("board")=='zolertiaz1' or os.environ.get("board")=='z1'):
self.bslResetZ1();
- elif (os.environ.get("board")=='apimote'):
+ elif (os.environ.get("board")=='apimote
1
'):
#Explicitly set RTS and DTR to halt board.
self.serialport.setRTS(1);
self.serialport.setDTR(1);
#Explicitly set RTS and DTR to halt board.
self.serialport.setRTS(1);
self.serialport.setDTR(1);
@@
-670,6
+670,14
@@
class GoodFET:
print "Clocked at %s" % self.monitorclocking();
return 1;
print "Clocked at %s" % self.monitorclocking();
return 1;
+ def testleds(self):
+ print "Flashing LEDs"
+ self.writecmd(self.MONITORAPP,0xD0,0,"");
+ try:
+ print "Flashed %d LED." % ord(self.data)
+ except:
+ print "Unable to process response:", self.data
+
def monitor_list_apps(self, full=False):
self.monitor_info()
old_value = self.besilent
def monitor_list_apps(self, full=False):
self.monitor_info()
old_value = self.besilent