added ttn-esp32 to extlibs
This commit is contained in:
parent
01c2c0d819
commit
1f58d58558
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
1
extlibs/ttn-esp32
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit f1f77e22ba0adea75fa96d8edf53e609402707cb
|
||||
Loading…
Reference in New Issue
Block a user