def setup_probe(thread): probeEnable = hal.newsig('probe-enable', hal.HAL_BIT) probeInput = hal.newsig('probe-input', hal.HAL_BIT) probeSignal = hal.newsig('probe-signal', hal.HAL_BIT) and2 = rt.newinst('and2', 'and2.probe-input') hal.addf(and2.name, thread) and2.pin('in0').link(probeSignal) and2.pin('in1').link(probeEnable) and2.pin('out').link(probeInput) probeInput += 'motion.probe-input' motion.setup_probe_io()