All pastes #2520687 Raw Edit

Something

public unlisted text v1 · immutable
#2520687 ·published 2013-12-31 12:17 UTC
rendered paste body
# components
#sudo ping -i .001 192.168.1.121
#halrun -I -f save.hal
loadrt threads name1=test-thread period1=1000000 
#loadrt hostmot2 debug_modules=1 debug_module_descriptors=1 debug_idrom=1
loadrt hostmot2
#loadrt hm2_eth ip=192.168.1.121 config="num_encoders=1 num_pwmgens=1 num_stepgens=1 num_3pwmgens=4" 
loadrt hm2_eth board_ip="192.168.1.121" board_mac="00:60:1b:11:80:17" 
# debug=1 config="num_encoders=1 num_pwmgens=1 num_stepgens=1 num_3pwmgens=4"
loadrt siggen
# pin aliases
# param aliases
# signals
# nets
# parameter values
# realtime thread/function links
addf hm2_7i80.0.pet_watchdog test-thread
addf hm2_7i80.0.read test-thread
addf hm2_7i80.0.write test-thread
addf siggen.0.update test-thread


setp hm2_7i80.0.gpio.024.is_opendrain true
setp hm2_7i80.0.gpio.024.is_output true

net square siggen.0.clock hm2_7i80.0.gpio.024.out
net sin siggen.0.sine hm2_7i80.0.pwmgen.00.value
setp hm2_7i80.0.pwmgen.00.enable true


start