Refactor pingpair_test to remove all serial io from within the irq handler, as necessitated by Arduino 1.0

This commit is contained in:
maniacbug
2012-01-15 22:15:45 -08:00
parent dec61af85f
commit dc48235343
5 changed files with 208 additions and 165 deletions
+4 -12
View File
@@ -1,16 +1,8 @@
#!/bin/sh
# Connect p6 to receiver, p4 to sender
# Connect u0 to receiver, u0 to sender
# WARNING: Test config 2 only works with PLUS units.
jam p4 p6 || exit 1
./runtest.py /dev/tty.usbserial-A600eHIs 1 &
./runtest.py /dev/tty.usbserial-A40081RP 1 || ( kill `jobs -p` && exit 1 )
kill `jobs -p`
./runtest.py /dev/tty.usbserial-A600eHIs 2 &
./runtest.py /dev/tty.usbserial-A40081RP 2 || ( kill `jobs -p` && exit 1 )
kill `jobs -p`
./runtest.py /dev/tty.usbserial-A600eHIs 3 &
./runtest.py /dev/tty.usbserial-A40081RP 3 || ( kill `jobs -p` && exit 1 )
kill `jobs -p`
exit 0
jam u0 u1 && expect test.ex 1
jam u0 u1 && expect test.ex 2
jam u0 u1 && expect test.ex 3