summaryrefslogtreecommitdiff
path: root/docs/src/source-highlight/hal-demo.txt
blob: 6380a149d42fc50517c9d2522e60f5e4de9491c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

Source Hightlight Filter Test
=============================

// for now, PDF's cant have highlighted ini,hal or ngc files
// for brave souls: extend /usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty
// and make it a local copy in the current directory
// HTML works fine

// these attributes must come after the document title, to work around a bug in asciidoc 8.6.6
:ini: {basebackend@docbook:'':ini}
:hal: {basebackend@docbook:'':hal}
:ngc: {basebackend@docbook:'':ngc}

// begin a listing of ini/hal/ngc files like so:
//[source,{ini}]
//[source,{hal}]
//[source,{ngc}]

Details of the filter can be found in
`./doc/source-highlight-filter.txt`.

[source,{hal}]
---------------------------------------------------------------------
# note this is for highlighting demo only - there aint any use to it

loadusr -W [MYSECTION]MYMODULE

loadrt conv_float_s32 names=f2s32
addf f2s32 servo-thread

# in case they were linked already

unlinkp motion.digital-out-01 471.11 $(envvar)
unlinkp motion.digital-in-01  815  $VAR

net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 f2s32.in [FOO]bAR
net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 f2s32.0.in
net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 f2s32x.0.in
net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 motion.0.in
net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 motion.in
net tool-change hal_manualtoolchange.56.change <= motion.digital-out-01
net tool-changed hal_manualtoolchange.changed motion.digital-in-01
net tool-prep-number hal_manualtoolchange.number f2s32.out

# prepare loopback
net tool-prepare motion.digital-out-00 motion.digital-in-00
---------------------------------------------------------------------