mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
tools: gpio: add bias flags to lsgpio
Add display of the bias flags. Signed-off-by: Kent Gibson <warthog618@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
parent
17f96ee2b9
commit
3831c051df
1 changed files with 12 additions and 0 deletions
|
@ -49,6 +49,18 @@ struct gpio_flag flagnames[] = {
|
|||
.name = "open-source",
|
||||
.mask = GPIOLINE_FLAG_OPEN_SOURCE,
|
||||
},
|
||||
{
|
||||
.name = "pull-up",
|
||||
.mask = GPIOLINE_FLAG_BIAS_PULL_UP,
|
||||
},
|
||||
{
|
||||
.name = "pull-down",
|
||||
.mask = GPIOLINE_FLAG_BIAS_PULL_DOWN,
|
||||
},
|
||||
{
|
||||
.name = "bias-disabled",
|
||||
.mask = GPIOLINE_FLAG_BIAS_DISABLE,
|
||||
},
|
||||
};
|
||||
|
||||
void print_flags(unsigned long flags)
|
||||
|
|
Loading…
Add table
Reference in a new issue