docs: Move sensor.rst to sensor/index.rst

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 <thomas.burdick@intel.com>
This commit is contained in:
Tom Burdick 2024-06-04 12:25:07 -05:00 committed by David Leach
commit 753f8ff0c7
4 changed files with 5 additions and 4 deletions

View file

@ -1843,7 +1843,7 @@ Release Notes:
- dts/bindings/sensor/ - dts/bindings/sensor/
- include/zephyr/drivers/sensor/ - include/zephyr/drivers/sensor/
- include/zephyr/dt-bindings/sensor/ - include/zephyr/dt-bindings/sensor/
- doc/hardware/peripherals/sensor.rst - doc/hardware/peripherals/sensor/
- tests/drivers/build_all/sensor/ - tests/drivers/build_all/sensor/
labels: labels:
- "area: Sensors" - "area: Sensors"

View file

@ -143,6 +143,7 @@ REDIRECTS = [
('guides/west/workspaces', 'develop/west/workspaces'), ('guides/west/workspaces', 'develop/west/workspaces'),
('guides/west/zephyr-cmds', 'develop/west/zephyr-cmds'), ('guides/west/zephyr-cmds', 'develop/west/zephyr-cmds'),
('guides/zephyr_cmake_package', 'build/zephyr_cmake_package'), ('guides/zephyr_cmake_package', 'build/zephyr_cmake_package'),
('hardware/peripherals/sensor', 'hardware/peripherals/sensor/index'),
('reference/api/api_lifecycle', 'develop/api/api_lifecycle'), ('reference/api/api_lifecycle', 'develop/api/api_lifecycle'),
('reference/api/index', 'develop/api/index'), ('reference/api/index', 'develop/api/index'),
('reference/api/overview', 'develop/api/overview'), ('reference/api/overview', 'develop/api/overview'),

View file

@ -51,7 +51,7 @@ Peripherals
reset.rst reset.rst
retained_mem.rst retained_mem.rst
sdhc.rst sdhc.rst
sensor.rst sensor/index.rst
spi.rst spi.rst
smbus.rst smbus.rst
uart.rst uart.rst

View file

@ -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 :c:func:`sensor_sample_fetch` is only called once, as it reads and
compensates data for both channels. compensates data for both channels.
.. literalinclude:: ../../../samples/sensor/bme280/src/main.c .. literalinclude:: ../../../../samples/sensor/bme280/src/main.c
:language: c :language: c
:lines: 12- :lines: 12-
:linenos: :linenos:
@ -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 kernel config symbols, no trigger is registered when triggering was disabled
by the driver's configuration. by the driver's configuration.
.. literalinclude:: ../../../samples/sensor/mcp9808/src/main.c .. literalinclude:: ../../../../samples/sensor/mcp9808/src/main.c
:language: c :language: c
:lines: 12- :lines: 12-
:linenos: :linenos: