mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
84 lines
2.3 KiB
Plaintext
84 lines
2.3 KiB
Plaintext
menu "Test Configuration"
|
|
|
|
choice TEST_I2C_WORK_MODE
|
|
prompt "I2C working mode select"
|
|
default TEST_I2C_MASTER_MODE
|
|
|
|
config TEST_I2C_MASTER_MODE
|
|
bool "i2c master mode"
|
|
config TEST_I2C_SLAVE_MODE
|
|
bool "I2C slave mode"
|
|
endchoice
|
|
|
|
menu "I2C Configuration"
|
|
config TEST_I2C_SCL_NUM
|
|
int "SCL GPIO Num"
|
|
default 9 if IDF_TARGET_ESP32C3
|
|
default 2 if IDF_TARGET_ESP32S3
|
|
default 19 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2
|
|
help
|
|
GPIO number for I2C Master clock line.
|
|
|
|
config TEST_I2C_SDA_NUM
|
|
int "SDA GPIO Num"
|
|
default 5 if IDF_TARGET_ESP32C3
|
|
default 1 if IDF_TARGET_ESP32S3
|
|
default 18 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2
|
|
help
|
|
GPIO number for I2C Master data line.
|
|
|
|
config TEST_I2C_PORT_NUM
|
|
int "Port Number"
|
|
default 0
|
|
help
|
|
Port number for I2C Master device.
|
|
|
|
config TEST_I2C_MASTER_FREQUENCY
|
|
int "Master Frequency"
|
|
default 400000
|
|
depends on TEST_I2C_MASTER_MODE
|
|
help
|
|
I2C Speed of Master device.
|
|
|
|
config TEST_I2C_SLAVE_ADDR
|
|
hex "ESP Slave Address"
|
|
default 0x58
|
|
help
|
|
Hardware Address of I2C Slave Port.
|
|
endmenu
|
|
|
|
config TEST_I2C_WIFI_AP_ENABLE
|
|
bool "Enable WIFI AP"
|
|
default y
|
|
depends on TEST_I2C_MASTER_MODE
|
|
|
|
menu "WiFi softAP Configuration"
|
|
depends on TEST_I2C_WIFI_AP_ENABLE
|
|
|
|
config TEST_WIFI_SSID
|
|
string "WiFi SSID"
|
|
default "myssid"
|
|
help
|
|
SSID (network name) for the test to connect to.
|
|
|
|
config TEST_WIFI_PASSWORD
|
|
string "WiFi Password"
|
|
default "mypassword"
|
|
help
|
|
WiFi password (WPA or WPA2) for the test to use.
|
|
config TEST_WIFI_CHANNEL
|
|
int "WiFi Channel"
|
|
range 1 13
|
|
default 1
|
|
help
|
|
WiFi channel (network channel) for the test to use.
|
|
|
|
config TEST_MAX_STA_CONN
|
|
int "Maximal STA connections"
|
|
default 4
|
|
help
|
|
Max number of the STA connects to AP.
|
|
endmenu
|
|
|
|
endmenu
|