doc: bindings: improve gpio_dt_spec doc
Use _dt methods for everything. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
5a4d2c5979
commit
c050d1f2ec
1 changed files with 1 additions and 1 deletions
|
@ -1143,7 +1143,7 @@ gpio_dt_spec``, then use it like this:
|
|||
gpio_pin_configure_dt(&signal, GPIO_OUTPUT_INACTIVE);
|
||||
|
||||
/* Set the pin to its active level */
|
||||
gpio_pin_set(signal.port, signal.pin, 1);
|
||||
gpio_pin_set_dt(&signal, 1);
|
||||
|
||||
(See :c:struct:`gpio_dt_spec`, :c:macro:`GPIO_DT_SPEC_GET`, and
|
||||
:c:func:`gpio_pin_configure_dt` for details on these APIs.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue