summaryrefslogtreecommitdiff
path: root/digital/avr/modules/twi/test/test_twi_host.py
diff options
context:
space:
mode:
authorNicolas Schodet2010-11-29 23:07:46 +0100
committerNicolas Schodet2010-11-29 23:07:46 +0100
commitdb212811293f91e0f1147eb57e5f6d5df2db10ef (patch)
tree0d531fb2c2380734a90e949ed66e4978fa8007ef /digital/avr/modules/twi/test/test_twi_host.py
parent0f105f99e378bb596f2c305f64bdd7cf1bc87446 (diff)
digital/avr/modules/twi: cleanup TWI module, refs #29, closes #90
- use contexts - changed interface - merge test programs - share polling mechanism - prepare place for other drivers - add callback system - use english comments
Diffstat (limited to 'digital/avr/modules/twi/test/test_twi_host.py')
-rw-r--r--digital/avr/modules/twi/test/test_twi_host.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/digital/avr/modules/twi/test/test_twi_host.py b/digital/avr/modules/twi/test/test_twi_host.py
deleted file mode 100644
index 94cd9628..00000000
--- a/digital/avr/modules/twi/test/test_twi_host.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import os, signal, time
-
-from mex.hub import Hub
-from mex.msg import Msg
-from mex.node import Node
-from utils.forked import Forked
-
-def log (x):
- print x
-
-h = Hub (min_clients = 3, log = log)
-fh = Forked (h.wait)
-
-n = Node ()
-def nf ():
- while True:
- time.sleep (1)
- n.wait (n.date + 1)
-fn = Forked (nf)
-
-slave = os.popen ('./test_twi_sl.host', 'w')
-
-try:
- os.system ('./test_twi_master.host')
-finally:
- fn.kill ()
- fh.kill ()
- slave.close ()
- time.sleep (1)