refactor(drivers): move mcp23017 expander driver into its own folder

This commit is contained in:
zhiayang 2022-05-10 13:45:57 +08:00
parent 19cc96b86d
commit 9ad25bfaa7
No known key found for this signature in database
GPG key ID: 5E2F30AD6F08571F
6 changed files with 11 additions and 7 deletions

View file

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

View file

@ -1 +1 @@
rsource "Kconfig.mcp23017"
rsource "mcp23017/Kconfig"

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)