Skip to content
Commit 0df794e3 authored by Nick Ward's avatar Nick Ward Committed by Carles Cufí
Browse files

drivers: gpio: shell: improve tab complete/suggestion support

This commit implements this enhancement:
https://github.com/zephyrproject-rtos/zephyr/issues/63018



The forms of the gpio commands are now:

        gpio conf device pin ol0
        gpio set device pin 1
        gpio get device pin
        gpio blink device pin

Device name and pin subcommands now are
suggested/completed when tab is used.

Pin names are suggested with numbers and line names if
available from the gpio controller’s Devicetree node.

GPIO pin command is now limited to pins that are not assigned
as reserved.

Signed-off-by: default avatarNick Ward <nix.ward@gmail.com>
parent 7a83724e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment