Skip to content

Commit

Permalink
docs: Move sensor.rst to sensor/index.rst
Browse files Browse the repository at this point in the history
Looking to expand the sensor docs and break out significant sections.
First though to move this to a directory to allow for multiple sensor
related rst docs.

Signed-off-by: Tom Burdick <[email protected]>
  • Loading branch information
teburd committed Jun 4, 2024
1 parent 4fc6506 commit 850a318
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1843,7 +1843,7 @@ Release Notes:
- dts/bindings/sensor/
- include/zephyr/drivers/sensor/
- include/zephyr/dt-bindings/sensor/
- doc/hardware/peripherals/sensor.rst
- doc/hardware/peripherals/sensor/
- tests/drivers/build_all/sensor/
labels:
- "area: Sensors"
Expand Down
2 changes: 1 addition & 1 deletion doc/hardware/peripherals/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Peripherals
reset.rst
retained_mem.rst
sdhc.rst
sensor.rst
sensor/index.rst
spi.rst
smbus.rst
uart.rst
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ measures ambient temperature and atmospheric pressure. Note that
:c:func:`sensor_sample_fetch` is only called once, as it reads and
compensates data for both channels.

.. literalinclude:: ../../../samples/sensor/bme280/src/main.c
.. literalinclude:: ../../../../samples/sensor/bme280/src/main.c
:language: c
:lines: 12-
:linenos:
Expand Down Expand Up @@ -217,7 +217,7 @@ interest of saving power. Since the application has direct access to the
kernel config symbols, no trigger is registered when triggering was disabled
by the driver's configuration.

.. literalinclude:: ../../../samples/sensor/mcp9808/src/main.c
.. literalinclude:: ../../../../samples/sensor/mcp9808/src/main.c
:language: c
:lines: 12-
:linenos:
Expand Down

0 comments on commit 850a318

Please sign in to comment.