Import LinuxCNC source tree
This commit is contained in:
64
tests/timedelay.0/expected
Normal file
64
tests/timedelay.0/expected
Normal file
@@ -0,0 +1,64 @@
|
||||
0 1 0
|
||||
1 1 0
|
||||
2 1 0
|
||||
3 1 0
|
||||
4 1 1
|
||||
5 0 1
|
||||
6 0 1
|
||||
7 0 1
|
||||
8 0 1
|
||||
9 0 1
|
||||
10 0 1
|
||||
11 0 1
|
||||
12 0 1
|
||||
13 0 0
|
||||
14 1 0
|
||||
15 1 0
|
||||
16 1 0
|
||||
17 1 0
|
||||
18 1 1
|
||||
19 0 1
|
||||
20 0 1
|
||||
21 0 1
|
||||
22 0 1
|
||||
23 0 1
|
||||
24 0 1
|
||||
25 0 1
|
||||
26 0 1
|
||||
27 0 0
|
||||
28 1 0
|
||||
29 1 0
|
||||
30 1 0
|
||||
31 1 0
|
||||
32 1 1
|
||||
33 0 1
|
||||
34 0 1
|
||||
35 0 1
|
||||
36 0 1
|
||||
37 0 1
|
||||
38 0 1
|
||||
39 0 1
|
||||
40 0 1
|
||||
41 0 0
|
||||
42 1 0
|
||||
43 1 0
|
||||
44 1 0
|
||||
45 1 0
|
||||
46 1 1
|
||||
47 0 1
|
||||
48 0 1
|
||||
49 0 1
|
||||
50 0 1
|
||||
51 0 1
|
||||
52 0 1
|
||||
53 0 1
|
||||
54 0 1
|
||||
55 0 0
|
||||
56 1 0
|
||||
57 1 0
|
||||
58 1 0
|
||||
59 1 0
|
||||
60 1 1
|
||||
61 0 1
|
||||
62 0 1
|
||||
63 0 1
|
||||
20
tests/timedelay.0/test.hal
Normal file
20
tests/timedelay.0/test.hal
Normal file
@@ -0,0 +1,20 @@
|
||||
loadrt sampler cfg=bb depth=100
|
||||
loadrt timedelay
|
||||
loadrt not
|
||||
loadrt threads name1=thread period1=1953125
|
||||
|
||||
# Thread period is 1/512 second.
|
||||
# on-delay is 1/128 + 1/1024 second, or 4.5 periods.
|
||||
# off-delay is 1/64 + 1/1024 second, or 8.5 periods.
|
||||
setp timedelay.0.on-delay 0.0087890625
|
||||
setp timedelay.0.off-delay 0.0166015625
|
||||
|
||||
net square not.0.out => timedelay.0.in sampler.0.pin.0
|
||||
net delayed timedelay.0.out => not.0.in sampler.0.pin.1
|
||||
|
||||
addf not.0 thread
|
||||
addf timedelay.0 thread
|
||||
addf sampler.0 thread
|
||||
|
||||
start
|
||||
loadusr -w halsampler -t -n 64
|
||||
Reference in New Issue
Block a user