1menu "Test Configuration" 2 3 choice TEST_I2C_WORK_MODE 4 prompt "I2C working mode select" 5 default TEST_I2C_MASTER_MODE 6 7 config TEST_I2C_MASTER_MODE 8 bool "i2c master mode" 9 config TEST_I2C_SLAVE_MODE 10 bool "I2C slave mode" 11 endchoice 12 13 menu "I2C Configuration" 14 config TEST_I2C_SCL_NUM 15 int "SCL GPIO Num" 16 default 9 if IDF_TARGET_ESP32C3 17 default 2 if IDF_TARGET_ESP32S3 18 default 19 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 19 help 20 GPIO number for I2C Master clock line. 21 22 config TEST_I2C_SDA_NUM 23 int "SDA GPIO Num" 24 default 5 if IDF_TARGET_ESP32C3 25 default 1 if IDF_TARGET_ESP32S3 26 default 18 if IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 27 help 28 GPIO number for I2C Master data line. 29 30 config TEST_I2C_PORT_NUM 31 int "Port Number" 32 default 0 33 help 34 Port number for I2C Master device. 35 36 config TEST_I2C_MASTER_FREQUENCY 37 int "Master Frequency" 38 default 400000 39 depends on TEST_I2C_MASTER_MODE 40 help 41 I2C Speed of Master device. 42 43 config TEST_I2C_SLAVE_ADDR 44 hex "ESP Slave Address" 45 default 0x58 46 help 47 Hardware Address of I2C Slave Port. 48 endmenu 49 50 config TEST_I2C_WIFI_AP_ENABLE 51 bool "Enable WIFI AP" 52 default y 53 depends on TEST_I2C_MASTER_MODE 54 55 menu "WiFi softAP Configuration" 56 depends on TEST_I2C_WIFI_AP_ENABLE 57 58 config TEST_WIFI_SSID 59 string "WiFi SSID" 60 default "myssid" 61 help 62 SSID (network name) for the test to connect to. 63 64 config TEST_WIFI_PASSWORD 65 string "WiFi Password" 66 default "mypassword" 67 help 68 WiFi password (WPA or WPA2) for the test to use. 69 config TEST_WIFI_CHANNEL 70 int "WiFi Channel" 71 range 1 13 72 default 1 73 help 74 WiFi channel (network channel) for the test to use. 75 76 config TEST_MAX_STA_CONN 77 int "Maximal STA connections" 78 default 4 79 help 80 Max number of the STA connects to AP. 81 endmenu 82 83endmenu 84