aboutsummaryrefslogtreecommitdiffstats
path: root/reset.py
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-05-21 19:09:35 -0400
committerAJM <poslathian@poslathian.(none)>2010-05-21 19:09:35 -0400
commitd44f856baffd72742d2287f75df5c2c5dff07a73 (patch)
treebaff10ec1752b750c8e595054824cfd08ab4256e /reset.py
parent7ee6a800d97e2dfeb5cbc4041df431941648b512 (diff)
downloadlibrambutan-d44f856baffd72742d2287f75df5c2c5dff07a73.tar.gz
librambutan-d44f856baffd72742d2287f75df5c2c5dff07a73.zip
Finalized the libmaple changes required by newboot. Added setupUSB() to wirish init
this involved some some changes to copy-to-ide, WProgram.h, and the makefile. Separated the reset.py from the wait.py so that the program closes the serial port correctly.
Diffstat (limited to 'reset.py')
-rwxr-xr-xreset.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/reset.py b/reset.py
index a7447d0..1a4d515 100755
--- a/reset.py
+++ b/reset.py
@@ -13,27 +13,6 @@ ser.setDTR(0)
# toggle DTR
ser.setDTR(1)
-# Some versions of python seem to throw an IOError on this line.
-# I have no idea why and don't have any time to look at it.
-# Just catch it for now.
-#
-# Error msg:
-#
-# Traceback (most recent call last):
-# File "./reset.py", line 15, in <module>
-# ser.setDTR(0)
-# File "/usr/lib/python2.6/dist-packages/serial/serialposix.py", line 388, in setDTR
-# fcntl.ioctl(self.fd, TIOCMBIC, TIOCM_DTR_str)
-# IOError: [Errno 84] Invalid or incomplete multibyte or wide character
-
-try:
- ser.setDTR(0)
-except IOError:
- print "IOError caught"
-
# close
ser.close()
-time.sleep(1)
-
-print "Done"