Port firmware/main to ESP-IDF 5.2 API: - Add idf_component.yml with mdns and esp_websocket_client managed deps - Rename esp_ota → app_update, esp_wifi_csi_info_t → wifi_csi_info_t - Fix freertos/semphr.h include path rename - Add missing headers: esp_mac.h, esp_netif.h, driver/temperature_sensor.h, string.h, math.h - Add led.c to SRCS, fix xTaskCreate arg count (7→6) - Use IDF 5.x temperature_sensor API in place of stub - Fix mdns_query_ptr signature (add max_results arg) - Fix url_decode isxdigit unsigned char cast - Add flash size config (16MB) to sdkconfig.defaults - Pin managed component versions in dependencies.lock - Add sdkconfig (generated) to .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
63 lines
1.5 KiB
Text
63 lines
1.5 KiB
Text
# SPAXEL Firmware Configuration Defaults
|
|
# Target: ESP32-S3
|
|
|
|
# Chip target
|
|
CONFIG_IDF_TARGET="esp32s3"
|
|
|
|
# Flash size — partitions.csv requires 12.1MB (factory 4MB + ota_0 4MB + ota_1 4MB)
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
|
CONFIG_ESPTOOLPY_FLASHSIZE="16MB"
|
|
|
|
# WiFi CSI Configuration
|
|
CONFIG_ESP_WIFI_RX_BCN_ADAPT=y
|
|
CONFIG_ESP_WIFI_RX_BCN_ADAPT_THRESHOLD=10
|
|
|
|
# Enable CSI
|
|
CONFIG_ESP_WIFI_CSI_ENABLED=y
|
|
|
|
# WiFi power save disabled for stable CSI
|
|
CONFIG_PM_ENABLE=n
|
|
|
|
# FreeRTOS configuration for dual-core
|
|
CONFIG_FREERTOS_UNICORE=n
|
|
|
|
# BLE configuration
|
|
CONFIG_BT_ENABLED=y
|
|
CONFIG_BT_BLUEDROID_ENABLED=y
|
|
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y
|
|
CONFIG_BT_BLE_RPA_SUPPORTED=y
|
|
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
|
|
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
|
|
CONFIG_BTDM_CTRL_MODE_BTDM=n
|
|
|
|
# Increase main task stack for WiFi/BLE operations
|
|
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
|
|
|
|
# WebSocket buffer sizes
|
|
CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS=n
|
|
CONFIG_ESP_HTTP_CLIENT_ENABLE_BASIC_AUTH=n
|
|
|
|
# Log levels
|
|
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
|
|
CONFIG_LOG_MAXIMUM_LEVEL_DEBUG=y
|
|
|
|
# Watchdog configuration
|
|
CONFIG_ESP_TASK_WDT_INIT=n
|
|
|
|
# mDNS
|
|
CONFIG_MDNS_MAX_SERVICES=10
|
|
|
|
# NVS
|
|
CONFIG_NVS_ENCRYPTION=n
|
|
|
|
# OTA — dual-partition rollback support
|
|
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
|
|
CONFIG_BOOTLOADER_APP_ROLLBACK_COUNT=1
|
|
CONFIG_APP_ROLLBACK_ENABLE=y
|
|
|
|
# Increase partition sizes for OTA
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
|
|
|
# LED identification blink
|
|
CONFIG_SPAXEL_LED_GPIO=8
|