mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-23 17:43:04 +08:00
feat: 智能家居控制系统 v1.0 初始版本
- 环境监测:温湿度/光照/空气质量传感器采集 - 智能控制:时间段/降温/通风三种自动模式 - 闹钟系统:3个闹钟+温和唤醒功能 - 远程控制:MQTT双向通信 - 本地显示:LVGL图形界面 - 双MCU架构,FreeRTOS 10任务并行 - 完整的1250行README文档
This commit is contained in:
52
components/protocol_examples_common/CMakeLists.txt
Normal file
52
components/protocol_examples_common/CMakeLists.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
if(${target} STREQUAL "linux")
|
||||
# Header only library for linux
|
||||
|
||||
idf_component_register(INCLUDE_DIRS include
|
||||
SRCS protocol_examples_utils.c)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(srcs "stdin_out.c"
|
||||
"addr_from_stdin.c"
|
||||
"connect.c"
|
||||
"wifi_connect.c"
|
||||
"protocol_examples_utils.c")
|
||||
|
||||
if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
|
||||
list(APPEND srcs "console_cmd.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_EXAMPLE_CONNECT_ETHERNET)
|
||||
list(APPEND srcs "eth_connect.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_EXAMPLE_CONNECT_THREAD)
|
||||
list(APPEND srcs "thread_connect.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_EXAMPLE_CONNECT_PPP)
|
||||
list(APPEND srcs "ppp_connect.c")
|
||||
endif()
|
||||
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "include"
|
||||
PRIV_REQUIRES esp_netif esp_driver_gpio esp_driver_uart esp_wifi vfs console esp_eth openthread)
|
||||
|
||||
if(CONFIG_EXAMPLE_PROVIDE_WIFI_CONSOLE_CMD)
|
||||
idf_component_optional_requires(PRIVATE console)
|
||||
endif()
|
||||
|
||||
if(CONFIG_EXAMPLE_CONNECT_ETHERNET)
|
||||
idf_component_optional_requires(PUBLIC esp_eth)
|
||||
endif()
|
||||
|
||||
if(CONFIG_EXAMPLE_CONNECT_THREAD)
|
||||
idf_component_optional_requires(PRIVATE openthread)
|
||||
endif()
|
||||
|
||||
if(CONFIG_EXAMPLE_CONNECT_PPP)
|
||||
idf_component_optional_requires(PRIVATE esp_tinyusb espressif__esp_tinyusb)
|
||||
endif()
|
||||
Reference in New Issue
Block a user