21#include <shell/shell.h>
22#include <drivers/gpio.h>
36 SHELL_CMD(int_type, NULL,
"Set interrupt pin type.",
38 SHELL_SUBCMD_SET_END);
43 SHELL_CMD(list_group, &gpio_device_name,
"List all GPIO config from certain group.",
47 SHELL_CMD(set, &sub_gpio_set_cmds,
"Set GPIO config", NULL),
48 SHELL_CMD(multifnctl, NULL,
"List all GPIO multi-function control regs.",
50 SHELL_SUBCMD_SET_END);
void cmd_gpio_muti_fn_ctl_list(const struct shell *shell, size_t argc, char **argv)
Definition: gpio_shell.c:325
void cmd_gpio_cfg_set_val(const struct shell *shell, size_t argc, char **argv)
Definition: gpio_shell.c:278
SHELL_DYNAMIC_CMD_CREATE(gpio_device_name, device_gpio_name_get)
void cmd_gpio_cfg_set_int_type(const struct shell *shell, size_t argc, char **argv)
Definition: gpio_shell.c:296
void cmd_gpio_cfg_get(const struct shell *shell, size_t argc, char **argv)
Definition: gpio_shell.c:264
SHELL_STATIC_SUBCMD_SET_CREATE(sub_gpio_set_cmds, SHELL_CMD(val, NULL, "Set pin value.", cmd_gpio_cfg_set_val), SHELL_CMD(int_type, NULL, "Set interrupt pin type.", cmd_gpio_cfg_set_int_type), SHELL_SUBCMD_SET_END)
void cmd_gpio_cfg_list_all(const struct shell *shell, size_t argc, char **argv)
Definition: gpio_shell.c:244
void device_gpio_name_get(size_t idx, struct shell_static_entry *entry)
Definition: gpio_shell.c:363
void cmd_gpio_cfg_list_group(const struct shell *shell, size_t argc, char **argv)
Definition: gpio_shell.c:178