Add initial ESP-IDF project configuration files
This commit is contained in:
1 parent
070f509c5a
commit
3b9e129c88
7 files changed
+6776
No files matched your search
@@ -0,0 +1,29 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
# OTA 升级版本号配置
|
||||
# 每次发布新版本固件时,请更新此版本号(格式: major.minor.patch)
|
||||
set(PROJECT_VER "1.0.0")
|
||||
|
||||
# 屏蔽警告
|
||||
add_compile_options(-w)
|
||||
|
||||
# ADF_PATH已经通过export.sh设置,直接使用即可
|
||||
# 添加ESP-IDF中的esp-qcloud组件路径,使用绝对路径确保正确性
|
||||
# set(EXTRA_COMPONENT_DIRS "$ENV{ADF_PATH}/components" "components" "c:/Users/YQ/Desktop/esp32/esp-adf/esp-idf/components/esp-qcloud")
|
||||
set(EXTRA_COMPONENT_DIRS "$ENV{ADF_PATH}/components" "components")
|
||||
|
||||
# 添加AW触摸传感器组件到构建系统
|
||||
# list(APPEND EXTRA_COMPONENT_DIRS "components/aw_touch_sensor")
|
||||
|
||||
# Agora IoT SDK:
|
||||
# Prefer local component under this project; only fallback to esp32-korvo-v3 copy when local one is missing.
|
||||
set(LOCAL_AGORA_IOT_SDK_DIR "${CMAKE_CURRENT_LIST_DIR}/components/agora_iot_sdk")
|
||||
if(NOT EXISTS "${LOCAL_AGORA_IOT_SDK_DIR}/CMakeLists.txt")
|
||||
set(AGORA_IOT_SDK_DIR "${CMAKE_CURRENT_LIST_DIR}/../esp32-korvo-v3/components/agora_iot_sdk")
|
||||
if(EXISTS "${AGORA_IOT_SDK_DIR}/CMakeLists.txt")
|
||||
list(APPEND EXTRA_COMPONENT_DIRS "${AGORA_IOT_SDK_DIR}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(sweekar-esp32)
|
||||
@@ -0,0 +1,140 @@
|
||||
menu "ESP QCloud Example Configuration"
|
||||
menu "Light development board selection "
|
||||
choice LIGHTBULB_DEMO_DRIVER_SELECT
|
||||
bool "Demo select"
|
||||
default LIGHTBULB_DEMO_DRIVER_SELECT_WS2812 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32H2
|
||||
default LIGHTBULB_DEMO_DRIVER_SELECT_PWM
|
||||
help
|
||||
Select the driver type you want to demonstrate
|
||||
|
||||
config LIGHTBULB_DEMO_DRIVER_SELECT_SM2135E
|
||||
bool "Demo SM2135E"
|
||||
config LIGHTBULB_DEMO_DRIVER_SELECT_WS2812
|
||||
bool "Demo WS2812"
|
||||
config LIGHTBULB_DEMO_DRIVER_SELECT_PWM
|
||||
bool "Demo PWM"
|
||||
endchoice
|
||||
|
||||
config WS2812_LED_GPIO
|
||||
int "WS2812 LED GPIO"
|
||||
default 8 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32H2
|
||||
default 18 if IDF_TARGET_ESP32S2
|
||||
default 48 if IDF_TARGET_ESP32S3
|
||||
default 4 if IDF_TARGET_ESP32C2
|
||||
default 18
|
||||
depends on LIGHTBULB_DEMO_DRIVER_SELECT_WS2812
|
||||
help
|
||||
Set the WS2812 RGB LED GPIO.
|
||||
|
||||
config WS2812_LED_NUM
|
||||
int "WS2812 LED NUM"
|
||||
default 1
|
||||
depends on LIGHTBULB_DEMO_DRIVER_SELECT_WS2812
|
||||
help
|
||||
Set the WS2812 LED NUM.
|
||||
|
||||
config PWM_FREQ_HZ
|
||||
int "PWM Frequency (hz)"
|
||||
default 4000
|
||||
range 2000 5000
|
||||
depends on LIGHTBULB_DEMO_DRIVER_SELECT_PWM
|
||||
help
|
||||
Set the PWM Frequency (hz).
|
||||
|
||||
config PWM_RED_GPIO
|
||||
int "PWM Red GPIO"
|
||||
default 10 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2
|
||||
default 15 if IDF_TARGET_ESP32S3
|
||||
default 0 if IDF_TARGET_ESP32C2
|
||||
default 23 if IDF_TARGET_ESP32H2
|
||||
default 25
|
||||
depends on LIGHTBULB_DEMO_DRIVER_SELECT_PWM
|
||||
help
|
||||
Set the PWM Red LED GPIO.
|
||||
|
||||
config PWM_GREEN_GPIO
|
||||
int "PWM Green GPIO"
|
||||
default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2
|
||||
default 16 if IDF_TARGET_ESP32S3
|
||||
default 1 if IDF_TARGET_ESP32C2
|
||||
default 24 if IDF_TARGET_ESP32H2
|
||||
default 26
|
||||
depends on LIGHTBULB_DEMO_DRIVER_SELECT_PWM
|
||||
help
|
||||
Set the PWM Green LED GPIO.
|
||||
|
||||
config PWM_BLUE_GPIO
|
||||
int "PWM Blue GPIO"
|
||||
default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2
|
||||
default 17 if IDF_TARGET_ESP32S3
|
||||
default 8 if IDF_TARGET_ESP32C2
|
||||
default 25 if IDF_TARGET_ESP32H2
|
||||
default 27
|
||||
depends on LIGHTBULB_DEMO_DRIVER_SELECT_PWM
|
||||
help
|
||||
Set the PWM Blue LED GPIO.
|
||||
|
||||
config SM2135E_IIC_CLK_GPIO
|
||||
int "SM2135E IIC CLK GPIO"
|
||||
default 4
|
||||
depends on LIGHTBULB_DEMO_DRIVER_SELECT_SM2135E
|
||||
help
|
||||
Set the SM2135E CLK GPIO.
|
||||
|
||||
config SM2135E_IIC_SDA_GPIO
|
||||
int "SM2135E IIC SDA GPIO"
|
||||
default 5
|
||||
depends on LIGHTBULB_DEMO_DRIVER_SELECT_SM2135E
|
||||
help
|
||||
Set the SM2135E SDA GPIO.
|
||||
endmenu
|
||||
|
||||
menu "Light provisioning network selection"
|
||||
config LIGHT_PROVISIONING_SMARTCONFIG
|
||||
bool "Enable SmartConfig's smart network configuration method"
|
||||
default n
|
||||
help
|
||||
Enable SmartConfig's smart network configuration method
|
||||
|
||||
config LIGHT_PROVISIONING_SOFTAPCONFIG
|
||||
bool "Enable SoftAP's network configuration method"
|
||||
default y
|
||||
help
|
||||
"Enable SoftAP's network configuration method"
|
||||
|
||||
config LIGHT_PROVISIONING_BLECONFIG
|
||||
depends on QCLOUD_ENABLE_BLECONFIG
|
||||
bool "Enable BLE's network configuration method"
|
||||
default y
|
||||
help
|
||||
"Enable BLE's network configuration method"
|
||||
|
||||
config LIGHT_PROVISIONING_SOFTAPCONFIG_SSID
|
||||
depends on LIGHT_PROVISIONING_SOFTAPCONFIG
|
||||
string "SoftAP ssid"
|
||||
default "tcloud_XXX"
|
||||
help
|
||||
SSID (network name) for the phone to connect to.
|
||||
|
||||
config LIGHT_PROVISIONING_BLECONFIG_NAME
|
||||
depends on LIGHT_PROVISIONING_BLECONFIG
|
||||
string "BLE name"
|
||||
default "Qcloud"
|
||||
help
|
||||
BLE for the phone to connect to.
|
||||
endmenu
|
||||
|
||||
config LIGHT_REBOOT_UNBROKEN_COUNT_RESET
|
||||
int "More than this number of continuous uninterrupted restarts triggers a reset of the device"
|
||||
range 3 15
|
||||
default 5
|
||||
help
|
||||
Devices without buttons trigger a device reset through continuous restart.
|
||||
|
||||
config LIGHT_DEBUG
|
||||
bool "The device will be in debug mode"
|
||||
default n
|
||||
help
|
||||
Debug mode device performance is only used during development.
|
||||
|
||||
endmenu
|
||||
@@ -0,0 +1,9 @@
|
||||
# ESP-IDF Partition Table
|
||||
# Name, Type, SubType, Offset, Size, Flags
|
||||
nvs, data, nvs, 0x9000, 0x4000,
|
||||
otadata, data, ota, 0xD000, 0x2000,
|
||||
phy_init, data, phy, 0xF000, 0x1000,
|
||||
model, data, spiffs, 0x10000, 0x220000,
|
||||
ota_0, app, ota_0, 0x230000, 0x560000,
|
||||
ota_1, app, ota_1, 0x790000, 0x560000,
|
||||
audio, data, spiffs, 0xD00000, 0x300000,
|
||||
|
@@ -0,0 +1,6 @@
|
||||
# Name, Type, SubType, Offset, Size, Flags
|
||||
nvs, data, nvs, 0x9000, 16K,
|
||||
phy_init, data, phy, 0xD000, 4K,
|
||||
model, data, spiffs, 0x10000, 1960K,
|
||||
app, app, factory, 0x200000, 11M,
|
||||
audio, data, spiffs, 0xD00000, 3M,
|
||||
|
+3168
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,29 @@
|
||||
CONFIG_BT_ENABLED=y
|
||||
CONFIG_BT_BLUEDROID_ENABLED=y
|
||||
CONFIG_BT_BLE_ENABLED=y
|
||||
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y
|
||||
CONFIG_BT_GATTS_ENABLE=y
|
||||
CONFIG_BT_GATTC_ENABLE=y
|
||||
CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=y
|
||||
CONFIG_FATFS_FS_LOCK=16
|
||||
|
||||
# LwIP Buffer Configuration
|
||||
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=23040
|
||||
CONFIG_LWIP_TCP_WND_DEFAULT=23040
|
||||
CONFIG_LWIP_TCP_RECVMBOX_SIZE=32
|
||||
CONFIG_LWIP_UDP_RECVMBOX_SIZE=32
|
||||
CONFIG_LWIP_TCPIP_RECVMBOX_SIZE=64
|
||||
CONFIG_LWIP_SO_RCVBUF=y
|
||||
|
||||
# Project partition layout required by spiffs_create_partition_image(audio ...)
|
||||
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
||||
CONFIG_ESPTOOLPY_FLASHSIZE="16MB"
|
||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions/partitions.csv"
|
||||
CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY=y
|
||||
CONFIG_ESP32_S3_KORVO2_V3_CP_BOARD=y
|
||||
CONFIG_LWIP_PPP_SUPPORT=y
|
||||
CONFIG_PPP_SUPPORT=y
|
||||
CONFIG_BOARD_VERSION_V1_1_16=y
|
||||
# CONFIG_SWEEKAR_DEMO_2 is not set
|
||||
CONFIG_LV_USE_GIF=y
|
||||
Reference in new issue
Block a user