summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorHannu Hartikainen <hannu@hrtk.in>2021-07-08 18:20:54 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-07-21 15:21:36 +0200
commitf3f1017a98f91355671feb0e741391999a43b55d (patch)
treec534cc067b6428634ed76afe81c26669f232b836 /samples
parent17ce60b2e4f87262eedd693021224130d720c00c (diff)
docs: gpio: explain GPIOD_OUT_* values and toggling active low
I was confused about the gpiod_flags values and thought that GPIOD_OUT_LOW and GPIOD_OUT_HIGH set the line to be active low / active high. This is not true, but I got the misconception because the flags GPIOD_OUT_*_OPEN_DRAIN do change line configuration and there's a subchapter about *active low* and *open drain* semantics. Add an explicit mention that the initial value is a logical value (and not the line configuration or physical line level). Also add a mention of the function gpiod_toggle_active_low which was previously missing from this document. Signed-off-by: Hannu Hartikainen <hannu@hrtk.in> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions