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.
9 lines
359 B
CMake
9 lines
359 B
CMake
# Copyright (c) 2022 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
zephyr_library_named(zmk__drivers__gpio)
|
|
zephyr_library_include_directories(${CMAKE_SOURCE_DIR}/include)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_GPIO_165 gpio_165.c)
|
|
zephyr_library_sources_ifdef(CONFIG_GPIO_595 gpio_595.c)
|
|
zephyr_library_sources_ifdef(CONFIG_GPIO_MAX7318 gpio_max7318.c)
|