Updae ESP-IFD example (#748)

This commit is contained in:
jgromes 2023-06-04 13:25:08 +02:00
parent 9f5e77616b
commit cb7b282c9b
4 changed files with 11 additions and 11 deletions

View file

@ -0,0 +1,3 @@
# generated by ESP-IDF
managed_components/
dependencies.lock

View file

@ -1,10 +0,0 @@
# this is required for ESP IDF
idf_component_register()
# if you did not build RadioLib as shared library (see wiki),
# you will have to add it as source directory
# the following is just an example, yours will likely be different
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../RadioLib" "${CMAKE_CURRENT_BINARY_DIR}/RadioLib")
# link RadioLib as interface
target_link_libraries(${COMPONENT_LIB} INTERFACE RadioLib)

View file

@ -1,4 +1,4 @@
# register the component and set "RadioLib", "esp_timer" and "driver" ad required # register the component and set "RadioLib", "esp_timer" and "driver" as required
idf_component_register(SRCS "main.cpp" idf_component_register(SRCS "main.cpp"
INCLUDE_DIRS "." INCLUDE_DIRS "."
REQUIRES RadioLib esp_timer driver) REQUIRES RadioLib esp_timer driver)

View file

@ -0,0 +1,7 @@
dependencies:
RadioLib:
# referenced locally because the example is a part of the repository itself
# under normal circumstances, it's preferrable to reference the repository instead
# for other options, see https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-component-manager.html
path: ../../../../../RadioLib
#git: https://github.com/jgromes/RadioLib.git