refactor(drivers): move mcp23017 expander driver into its own folder
This commit is contained in:
parent
19cc96b86d
commit
9ad25bfaa7
6 changed files with 11 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -1 +1 @@
|
|||
rsource "Kconfig.mcp23017"
|
||||
rsource "mcp23017/Kconfig"
|
||||
|
|
8
app/drivers/gpio/mcp23017/CMakeLists.txt
Normal file
8
app/drivers/gpio/mcp23017/CMakeLists.txt
Normal 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)
|
Loading…
Add table
Reference in a new issue