YAML document separators are needed e.g. when doing
$ cat doc1.yaml doc2.yaml | <parser>
For the bindings, we never parse concatenated documents. Assume we don't
for any other .yaml files either.
Having document separators in e.g. base.yaml makes !include a bit
confusing, since the !included files are merged and not separate
documents (the merging is done in Python code though, so it makes no
difference for behavior).
The replacement was done with
$ git ls-files '*.yaml' | \
xargs sed -i -e '${/\s*\.\.\.\s*/d;}' -e 's/^\s*---\s*$//'
First pattern removes ... at the end of files, second pattern clears a
line with a lone --- on it.
Some redundant blank lines at the end of files were cleared with
$ git ls-files '*.yaml' | xargs sed -i '${/^\s*$/d}'
This is more about making sure people can understand why every part of a
binding is there than about removing some text.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
|
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| prj.conf | ||
| README.rst | ||
| sample.yaml | ||
.. _fxas21002: FXAS21002 Gyroscope Sensor ########################## Overview ******** A sensor application that demonstrates how to use the fxas21002 data ready interrupt to read gyroscope data synchronously. Building and Running ******************** This project outputs sensor data to the console. It requires an fxas21002 sensor, which is present on the :ref:`hexiwear_k64` board. It does not work on QEMU. .. zephyr-app-commands:: :zephyr-app: samples/sensors/fxas21002 :board: hexiwear_k64 :goals: build :compact: Sample Output ============= .. code-block:: console X= -2.063 Y= 0.813 Z= 0.188 X= -1.750 Y= 1.063 Z= 0.063 X= -2.000 Y= 0.625 Z= 0.063 X= -2.188 Y= 0.625 Z= 0.188 X= -2.125 Y= 1.313 Z= -0.063 X= -2.188 Y= 1.188 Z= 0.313 <repeats endlessly>