feat(drivers): Add mcp23017 driver based on upstream mcp23s17 one.

* Upstream Zephyr has in progress driver, so doing this locally here,
  until we can move over to that driver.
This commit is contained in:
Pete Johanson
2021-01-28 22:54:44 -05:00
parent 2f0ad4cc8c
commit 647110e5e5
8 changed files with 481 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
# Copyright (c) 2020 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_MCP23017 gpio_mcp23017.c)
zephyr_library_sources_ifndef(CONFIG_GPIO_MCP23017 ${ZEPHYR_BASE}/misc/empty_file.c)