Skip to content

input or output? #37490

Answered by yashi
zzzh asked this question in Q&A
Aug 6, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

"Logical value '1'" means that the GPIO is in active state as in comment string.

From https://docs.zephyrproject.org/latest/reference/peripherals/gpio.html

If a pin was configured as Active Low, physical level low will be considered as logical level 1 (an active state), physical level high will be considered as logical level 0 (an inactive state).

Let's say that a GPIO pin is connected to a chip's reset signal. For some chips, the signal must be low to make the chip in reset state. For other chips, the signal must be high. This depends on chips you are using.

But from the software point of view, we want to just say "Reset the chip" or "Activate the reset pin". So, we, as in software, ju…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@zzzh
Comment options

@yashi
Comment options

yashi Oct 25, 2021
Collaborator

@zzzh
Comment options

Answer selected by zzzh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants