/ docs / src / source-highlight / hal-demo.txt
hal-demo.txt
 1  
 2  Source Hightlight Filter Test
 3  =============================
 4  
 5  // for now, PDF's cant have highlighted ini,hal or ngc files
 6  // for brave souls: extend /usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty
 7  // and make it a local copy in the current directory
 8  // HTML works fine
 9  
10  // these attributes must come after the document title, to work around a bug in asciidoc 8.6.6
11  :ini: {basebackend@docbook:'':ini}
12  :hal: {basebackend@docbook:'':hal}
13  :ngc: {basebackend@docbook:'':ngc}
14  
15  // begin a listing of ini/hal/ngc files like so:
16  //[source,{ini}]
17  //[source,{hal}]
18  //[source,{ngc}]
19  
20  Details of the filter can be found in
21  `./doc/source-highlight-filter.txt`.
22  
23  [source,{hal}]
24  ---------------------------------------------------------------------
25  # note this is for highlighting demo only - there aint any use to it
26  
27  loadusr -W [MYSECTION]MYMODULE
28  
29  loadrt conv_float_s32 names=f2s32
30  addf f2s32 servo-thread
31  
32  # in case they were linked already
33  
34  unlinkp motion.digital-out-01 471.11 $(envvar)
35  unlinkp motion.digital-in-01  815  $VAR
36  
37  net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 f2s32.in [FOO]bAR
38  net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 f2s32.0.in
39  net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 f2s32x.0.in
40  net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 motion.0.in
41  net tool-prep-number-f  motion.0.analog-out-00 => motion.0.analog-out-00 motion.in
42  net tool-change hal_manualtoolchange.56.change <= motion.digital-out-01
43  net tool-changed hal_manualtoolchange.changed motion.digital-in-01
44  net tool-prep-number hal_manualtoolchange.number f2s32.out
45  
46  # prepare loopback
47  net tool-prepare motion.digital-out-00 motion.digital-in-00
48  ---------------------------------------------------------------------