Files
sweekar-esp32-gyroscope/main/Kconfig.projbuild
T

545 lines
16 KiB
Plaintext

menu "Sweekar Application Configuration"
# ==============================================================
# 模块化配置自动扫描引入点
# 这里会自动加载 main/Kconfig.modules 文件
# ==============================================================
rsource "Kconfig.modules"
choice BOARD_VERSION_SELECTION
prompt "Select Board Version"
default BOARD_VERSION_V1_1_11
help
Select the hardware board version to use.
config BOARD_VERSION_V1_1_11
bool "Board v1.1.11"
help
Use board version v1.1.11
config BOARD_VERSION_V1_1_12
bool "Board v1.1.12"
help
Use board version v1.1.12
config BOARD_VERSION_V1_1_13
bool "Board v1.1.13"
help
Use board version v1.1.13
config BOARD_VERSION_V1_1_14
bool "Board v1.1.14"
help
Use board version v1.1.14
config BOARD_VERSION_V1_1_16
bool "Board v1.1.16"
help
Use board version v1.1.16
config BOARD_VERSION_V1_1_17
bool "Board v1.1.17"
help
Use board version v1.1.17
config BOARD_VERSION_V1_1_18
bool "Board v1.1.18"
help
Use board version v1.1.18
endchoice
choice STEPPER_DRIVER_IMPL
prompt "Stepper Driver Implementation"
default STEPPER_DRIVER_DRV8428
help
Select the stepper motor driver chip.
config STEPPER_DRIVER_DRV8428
bool "TI DRV8428"
help
Use TI DRV8428 stepper motor driver.
config STEPPER_DRIVER_AW8646
bool "Awinic AW8646"
help
Use Awinic AW8646 stepper motor driver.
endchoice
choice LINEAR_MOTOR_TYPE
prompt "Linear Motor Type"
default LINEAR_MOTOR_LD0832
help
Select the linear motor type.
config LINEAR_MOTOR_LD0832
bool "LD0832 (1.8V, 235Hz, 21 ohm)"
help
Use LD0832 linear motor.
config LINEAR_MOTOR_LD0625
bool "LD0625 (0.7V, 260Hz, 8 ohm)"
help
Use LD0625 linear motor.
endchoice
choice AUDIO_DECODER_SUPPORT
prompt "Audio Decoder"
default AUDIO_SUPPORT_OPUS_DECODER
config AUDIO_SUPPORT_G711A_DECODER
bool "AUDIUO-G711-DECODER"
config AUDIO_SUPPORT_OPUS_DECODER
bool "AUDIO-OPUS-DECODER"
config AUDIO_SUPPORT_AAC_DECODER
bool "AUDIO-AAC-DECODER"
endchoice
choice AUDIO_CONVERSATION_MODE_SUPPORT
prompt "Conversion Mode"
default CONTINUOUS_CONVERSATION_MODE
config LANGUAGE_WAKEUP_MODE
select USE_WAKENET
select SR_WN_WN9_HILEXIN
bool "LANGUAGE-WAKEUP-MODE"
config CONTINUOUS_CONVERSATION_MODE
bool "CONTINUOUS-CONVERSATION-MODE"
endchoice
choice RTC_MODE_CHOICE
prompt "rtc mode choice"
default COZE_REQUEST
help
Select rtc request mode
config COZE_REQUEST
bool "enable coze request"
config RTC_TOKEN_REQUEST
bool "enable rtc token request"
endchoice
choice RTC_BACKEND_PROVIDER
prompt "RTC backend provider"
default RTC_BACKEND_VOLC
help
Select the RTC SDK backend used by the AI RTC service.
config RTC_BACKEND_VOLC
bool "VolcEngine RTC (current default)"
config RTC_BACKEND_AGORA
bool "Agora RTC (migration target)"
endchoice
menu "Agora RTC Configuration"
depends on RTC_BACKEND_AGORA
config AGORA_SDK_ENABLED
bool "Agora SDK integrated"
default n
help
Enable this option after adding Agora RTC SDK headers/libs.
config AGORA_APP_ID
string "Agora App ID"
default ""
config AGORA_TOKEN
string "Agora RTC Token"
default ""
config AGORA_CHANNEL
string "Agora Channel Name"
default "default"
config AGORA_UID
int "Agora Local UID"
default 0
endmenu
choice TOUCH_SENSOR_IMPL
prompt "Touch Sensor Implementation"
default TOUCH_SENSOR_IMPL_ESP
config TOUCH_SENSOR_IMPL_ESP
bool "ESP32 Touch Pad"
help
Use ESP32 internal touch sensor (via touch_pad).
config TOUCH_SENSOR_IMPL_AW
bool "Awinic Touch Sensor"
help
Use Awinic AW933xx touch sensor.
endchoice
choice BASE_BOARD_COMM_INTERFACE
prompt "Base Board Communication Interface"
default BASE_BOARD_COMM_UART
help
Select the communication interface for the base board.
config BASE_BOARD_COMM_UART
bool "UART (Legacy)"
help
Use UART for base board communication.
config BASE_BOARD_COMM_I2C
bool "I2C (v1.1.16+)"
help
Use I2C for base board communication.
endchoice
config COZE_URL
string "COZE-URL"
default "http://115.190.92.216:8899/startvoicechat"
depends on COZE_REQUEST
config COZE_AUTHORIZATION
string "COZE-AUTHORIZATION"
default "af78e3067582ac8c04ba20174410bd1"
depends on COZE_REQUEST
config COZE_BOTID
string "COZE-BOTID"
default "ep-20241104163951-sdmjc"
depends on COZE_REQUEST
config RTC_TOKEN
depends on RTC_TOKEN_REQUEST
config APPID
string "appid"
depends on RTC_TOKEN_REQUEST
config ROOMID
string "roomid"
depends on RTC_TOKEN_REQUEST
config UID
string "userid"
depends on RTC_TOKEN_REQUEST
config TOKEN
string "token"
depends on RTC_TOKEN_REQUEST
config ENABLE_RECORDER_DEBUG
bool "enable recorder debug save to sdcard"
default "n"
help
Save the data processed by AEC to the SD card. The saved file name is "rec.pcm", and by default, 30 seconds' worth of data will be saved.
config ENABLE_OTA_UPDATE
bool "Enable OTA Update"
default y
help
Enable or disable OTA
choice OTA_UPDATE_STRATEGY
prompt "OTA Update Strategy"
default OTA_MODE_NOTIFY
depends on ENABLE_OTA_UPDATE
help
Select the OTA update strategy
config OTA_MODE_AUTO
bool "Auto Update (Immediate)"
help
Automatically download and install updates immediately
config OTA_MODE_NOTIFY
bool "Notify Update (Wait for Confirmation)"
help
Wait for user confirmation before starting the OTA update process.
endchoice
endmenu
menu "QCloud COS Download Configuration"
config QCLOUD_COS_QUEUE_SIZE
int "COS download queue size"
default 20
range 1 100
help
Number of pending COS download messages that can be buffered.
config QCLOUD_COS_WORKER_COUNT
int "COS worker thread count"
default 1
range 1 4
help
Number of worker threads for COS download processing.
config QCLOUD_COS_WORKER_STACK_SIZE
int "COS worker stack size (bytes)"
default 16384
range 4096 65536
help
Stack size in bytes for each COS worker thread.
config QCLOUD_COS_HTTP_BUFFER_SIZE
int "COS HTTP download buffer size (bytes)"
default 32768
range 4096 131072
help
Buffer size used by HTTP read and esp_http_client internal buffer.
config QCLOUD_COS_ZIP_UNZIP_BUFFER_SIZE
int "COS ZIP unzip read buffer size (bytes)"
default 32768
range 4096 131072
help
Buffer size used when reading compressed data from ZIP entries.
config QCLOUD_COS_SD_WRITE_BUFFER_SIZE
int "COS SD write buffer size (bytes)"
default 32768
range 4096 131072
help
stdio write buffer size for HTTP download and ZIP extraction output.
endmenu
menu "WiFi Configuration"
config ENABLE_HARDCODED_WIFI
bool "Enable Hardcoded WiFi Credentials"
default n
help
If enabled, the device will first attempt to connect to the specified WiFi network.
If disabled or connection fails, it will fall back to SmartConfig/QCloud provisioning.
config HARDCODED_WIFI_SSID
string "WiFi SSID"
depends on ENABLE_HARDCODED_WIFI
default ""
help
The SSID of the WiFi network to connect to.
Leave empty to fallback to SmartConfig/QCloud provisioning.
config HARDCODED_WIFI_PASSWORD
string "WiFi Password"
depends on ENABLE_HARDCODED_WIFI
default ""
help
The password of the WiFi network to connect to.
endmenu
# Sweekar Demo Selection
menu "Sweekar Demo Selection"
choice SWEEKAR_DEMO_SELECTION
prompt "Select Active Demo"
default SWEEKAR_DEMO_3
help
Select which demo to build and run. Only one demo can be active at a time.
config SWEEKAR_DEMO_2
bool "Demo 2"
config SWEEKAR_DEMO_3
bool "Demo 3 - Basic Pet Game"
config SWEEKAR_DEMO_5
bool "Demo 5"
config SWEEKAR_DEMO_6
bool "Demo 6 - Layered Architecture"
config SWEEKAR_DEMO_7
bool "Demo 7 - Microkernel Architecture"
endchoice
config ACTIVE_DEMO_NAME
string
default "sweekar_demo2" if SWEEKAR_DEMO_2
default "sweekar_demo3" if SWEEKAR_DEMO_3
default "sweekar_demo5" if SWEEKAR_DEMO_5
default "sweekar_demo6" if SWEEKAR_DEMO_6
default "sweekar_demo7" if SWEEKAR_DEMO_7
config SWEEKAR_DEMO6_HATCHING5_TVC
bool "Use TVC version for Hatching 5"
depends on SWEEKAR_DEMO_6
default n
help
If enabled, plays EGG_EMORAISING_HATCHING5_TVC instead of EGG_EMORAISING_HATCHING5_NORMAL during the final hatching stage.
endmenu
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.
choice QCLOUD_WIFI_CONFIG_METHOD
prompt "WiFi Provisioning Method"
default QCLOUD_WIFI_SMARTCONFIG
help
Select how the device should connect to WiFi.
config QCLOUD_WIFI_PROVISIONING
bool "WeChat Mini-Program (connectWiFi)"
config QCLOUD_WIFI_SMARTCONFIG
bool "ESP-Touch / SmartConfig (connectWiFi_smartconfig)"
endchoice
endmenu