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:
parent
80c59df211
commit
4a0e3529ba
7 changed files with 7 additions and 7 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
===================
|
||||
|
|
|
@ -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
|
||||
===================
|
||||
|
|
|
@ -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
|
||||
===================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue