Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance GPIO hogs for application control and shell commands
Related to #55617 Enhance the GPIO hogs driver to allow application control over GPIO configuration and add a shell command for managing GPIOs. * Add `gpio_hogs_configure()` function in `drivers/gpio/gpio_hogs.c` to allow application-controlled GPIO configuration. * Implement logic to filter GPIOs based on the provided port and mask in `gpio_hogs_configure()`. * Modify `gpio_hogs_init()` in `drivers/gpio/gpio_hogs.c` to check the `GPIO_HOGS_INITIALIZE_BY_APPLICATION` Kconfig option. * Update shell commands in `drivers/gpio/gpio_shell.c` to use the `line-names` property for referencing GPIOs by their names. * Add tab completion for GPIO names in the shell commands in `drivers/gpio/gpio_shell.c`. * Add a new Kconfig option `GPIO_HOGS_INITIALIZE_BY_APPLICATION` in `drivers/gpio/Kconfig` to enable application-controlled GPIO initialization.
- Loading branch information