zmk/app/drivers/gpio/Kconfig.165
Purdea Andrei 2403ecb046 implement gpio_165 driver
This is an input-only gpio driver for use with 74x165
style parallel-input shift registers, (using SPI peripheral)

The user can choose to either use cs-gpios of spi or
load-gpios for connecting to the SH/LD pin of the shift
register. The difference is that cs-gpios will keep
the input latch enabled while idle, and load-gpios will
instead pulse the SH/LD signal before the register
content is shifted. In both cases the gpio should be
configured GPIO_ACTIVE_HIGH.
2023-06-04 12:02:32 +03:00

25 lines
576 B
Text

# 165 GPIO configuration options
# Copyright (c) 2022 The ZMK Contributors
# SPDX-License-Identifier: MIT
DT_COMPAT_ZMK_GPIO_165 := zmk,gpio-165
menuconfig GPIO_165
bool "165 Parallel Input Shift Register SPI driver"
default $(dt_compat_enabled,$(DT_COMPAT_ZMK_GPIO_165))
depends on SPI
select HAS_DTS_GPIO
select ZMK_DRIVERS_GPIO
help
Enable driver for 165 shift register chip using SPI.
if GPIO_165
config GPIO_165_INIT_PRIORITY
int "Init priority"
default 75
help
Device driver initialization priority.
endif #GPIO_165