added ttn-esp32 to extlibs

This commit is contained in:
Bogdan Pilyugin 2023-01-05 03:39:22 +02:00
parent 01c2c0d819
commit 1f58d58558
4 changed files with 19 additions and 4 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "extlibs/libespfs"]
path = extlibs/libespfs
url = https://github.com/userbogd/libespfs.git
[submodule "extlibs/ttn-esp32"]
path = extlibs/ttn-esp32
url = https://github.com/userbogd/ttn-esp32.git

View File

@ -2,17 +2,26 @@ include(${CMAKE_CURRENT_LIST_DIR}/extlibs/jReadWrite/include.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/extlibs/libespfs/cmake/include.cmake)
if(CONFIG_WEBGUIAPP_LORAWAN_ENABLE)
set(lora_SRCS "src/LoRaWAN.c")
set(lora_REQUIRES ttn-esp32)
set(lora_SRCS "lorawan/LoRaWAN.c")
set(lora_PRIV_REQUIRES
ttn-esp32
)
set(lora_INCLUDE_DIRS
"../ttn-esp32/include"
"../ttn-esp32/src/hal"
)
endif()
idf_component_register(
SRCS ${jreadwrite_SRCS}
INCLUDE_DIRS ${jreadwrite_INCLUDE_DIRS}
SRCS ${lora_SRCS}
PRIV_REQUIRES ${lora_PRIV_REQUIRES}
INCLUDE_DIRS ${lora_INCLUDE_DIRS}
SRCS ${libespfs_SRCS}
INCLUDE_DIRS ${libespfs_INCLUDE_DIRS}
PRIV_INCLUDE_DIRS ${libespfs_PRIV_INCLUDE_DIRS}
@ -40,6 +49,7 @@ idf_component_register(
"include"
"src"
"extlibs/jReadWrite"
EMBED_FILES "upload_script.html"
@ -52,6 +62,7 @@ idf_component_register(
esp_modem
esp_https_ota
app_update
REQUIRES ${lora_REQUIRES}
)

1
extlibs/ttn-esp32 Submodule

@ -0,0 +1 @@
Subproject commit f1f77e22ba0adea75fa96d8edf53e609402707cb