zephyr/samples/sensor/tmp112
Gerard Marull-Paretas a202341958 devices: constify device pointers initialized at compile time
Many device pointers are initialized at compile and never changed. This
means that the device pointer can be constified (immutable).

Automated using:

```
perl -i -pe 's/const struct device \*(?!const)(.*)= DEVICE/const struct
device *const $1= DEVICE/g' **/*.c
```

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-08-22 17:08:26 +02:00
..
boards samples: sensors: Remove label property from devicetree overlays 2022-07-19 08:23:35 -05:00
src devices: constify device pointers initialized at compile time 2022-08-22 17:08:26 +02:00
CMakeLists.txt
prj.conf sensors: Remove unnecessary Kconfig setting of sensors 2022-07-25 15:18:56 +02:00
README.rst
sample.yaml

.. _tmp112_sample:

TMP112 sample
#############

Overview
********

A sample showing how to use the :dtcompatible:`ti,tmp112` sensor.

Requirements
************

A board with this sensor built in to its :ref:`devicetree <dt-guide>`, or a
devicetree overlay with such a node added.

Building and Running
********************

To build and flash the sample for the :ref:`frdm_k64f`:

.. zephyr-app-commands::
   :zephyr-app: samples/sensor/tmp112
   :board: frdm_k64f
   :goals: build flash
   :compact: