doc: boards: s/device_get_binding/DEVICE_DT_GET

Change to DEVICE_DT_GET when the documented device can be obtained at
compile time.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-03-15 19:44:35 +01:00 committed by Carles Cufí
commit 4a0e3529ba
7 changed files with 7 additions and 7 deletions

View file

@ -191,7 +191,7 @@ more than one UART for connecting peripheral devices:
In the overlay file above, pin P0.16 is used for RX and P0.14 is used for TX
2. Use the UART1 as ``device_get_binding(DT_LABEL(DT_NODELABEL(uart1)))``
2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))``
See :ref:`set-devicetree-overlays` for further details.

View file

@ -197,7 +197,7 @@ more than one UART for connecting peripheral devices:
In the overlay file above, pin P0.16 is used for RX and P0.14 is used for TX
2. Use the UART1 as ``device_get_binding(DT_LABEL(DT_NODELABEL(uart1)))``
2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))``
See :ref:`set-devicetree-overlays` for further details.

View file

@ -178,7 +178,7 @@ more than one UART for connecting peripheral devices:
In the overlay file above, pin P0.16 is used for RX and P0.14 is used for TX
2. Use the UART1 as ``device_get_binding(DT_LABEL(DT_NODELABEL(uart1)))``
2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))``
See :ref:`set-devicetree-overlays` for further details.

View file

@ -186,7 +186,7 @@ more than one UART for connecting peripheral devices:
In the overlay file above, pin P0.16 is used for RX and P0.14 is used for TX
2. Use the UART1 as ``device_get_binding(DT_LABEL(DT_NODELABEL(uart1)))``
2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))``
See :ref:`set-devicetree-overlays` for further details.

View file

@ -475,7 +475,7 @@ more than one UART for connecting peripheral devices:
In the overlay file above, pin P0.16 is used for RX and P0.14 is
used for TX
2. Use the UART1 as ``device_get_binding("UART_1")``
2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))``
Overlay file naming
===================

View file

@ -487,7 +487,7 @@ more than one UART for connecting peripheral devices:
In the overlay file above, pin P0.16 is used for RX and P0.14 is
used for TX
2. Use the UART1 as ``device_get_binding("UART_1")``
2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))``
Overlay file naming
===================

View file

@ -473,7 +473,7 @@ more than one UART for connecting peripheral devices:
In the overlay file above, pin P0.16 is used for RX and P0.14 is
used for TX
2. Use the UART1 as ``device_get_binding("UART_1")``
2. Use the UART1 as ``DEVICE_DT_GET(DT_NODELABEL(uart1))``
Overlay file naming
===================