aboutsummaryrefslogtreecommitdiffstats
path: root/support/scripts
diff options
context:
space:
mode:
authorAJM <poslathian@poslathian.(none)>2010-06-09 22:25:14 -0400
committerAJM <poslathian@poslathian.(none)>2010-06-09 22:25:14 -0400
commitbe5593982965b22518c0605ef951574b4b97c871 (patch)
tree7d2b7dc51726b73474d00e0fa189ecd81fc380b5 /support/scripts
parent8afc89be1da70c2776333b3858532c6b753e11ce (diff)
downloadlibrambutan-be5593982965b22518c0605ef951574b4b97c871.tar.gz
librambutan-be5593982965b22518c0605ef951574b4b97c871.zip
added a somewhat broken version of the reset magic number scheme.
current version gets stuck in the isr somewhere. not sure why or where. must debug.
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/reset.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/support/scripts/reset.py b/support/scripts/reset.py
index 7594845..90ff331 100755
--- a/support/scripts/reset.py
+++ b/support/scripts/reset.py
@@ -7,16 +7,11 @@ try:
ser = serial.Serial('/dev/ttyACM0', baudrate=115200)
ser.open()
- # pull dtr and rts low
- ser.setRTS(0)
- ser.setDTR(0)
-
# toggle DTR
ser.setDTR(1)
ser.setDTR(0)
- programDelay = pack("b",35)
- ser.write(programDelay)
+ ser.write("1EAF")
# close
ser.close()