Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .astylerc.old-style

This file was deleted.

2 changes: 1 addition & 1 deletion .eil.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: shiftregister
description: Generic shift register driver
version: 1.0.0
version: 1.0.1
groups:
- common
code_owners:
Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "common"]
path = common
url = https://github.com/esp-idf-lib/common.git
[submodule "eil-cmake-utils"]
path = eil-cmake-utils
url = git@github.com:esp-idf-lib/eil-cmake-utils.git
29 changes: 16 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
if(${IDF_VERSION_MAJOR} STREQUAL 5 AND ${IDF_VERSION_MINOR} STRLESS 3)
set(priv_requires driver)
else()
set(priv_requires esp_driver_gpio)
endif()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/eil-cmake-utils/cmake)
include(eil_check_idf_features)
eil_check_idf_has_esp_drivers()

idf_component_register(SRCS "shiftregister_gpio.c"
PRIV_REQUIRES ${priv_requires}
INCLUDE_DIRS "include")
# List of common ESP-IDF components required by this component
set(REQUIRED_COMPONENTS log)

# include common cmake file for components
set(ESP_IDF_LIB_CMAKE ${CMAKE_CURRENT_LIST_DIR}/common/cmake/esp-idf-lib.cmake)
if(EXISTS ${ESP_IDF_LIB_CMAKE})
include(${ESP_IDF_LIB_CMAKE})
if(EIL_IDF_HAS_ESP_DRIVERS)
list(APPEND REQUIRED_COMPONENTS esp_driver_gpio)
else()
message(WARNING "${ESP_IDF_LIB_CMAKE} not found")
list(APPEND REQUIRED_COMPONENTS driver)
endif()

idf_component_register(
SRCS shiftregister_gpio.c
INCLUDE_DIRS "include"
REQUIRES ${REQUIRED_COMPONENTS}
)

include(eil_ci)
19 changes: 0 additions & 19 deletions Kconfig.i2c

This file was deleted.

1 change: 0 additions & 1 deletion common
Submodule common deleted from 12347b
1 change: 1 addition & 0 deletions eil-cmake-utils
Submodule eil-cmake-utils added at c91055
4 changes: 2 additions & 2 deletions idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
version: 1.0.0
description: "This is a template component"
version: 1.0.1
description: "Generic shift register driver"
license: "MIT"
targets:
- esp32
Expand Down
Loading