Merge branch 'bugfix/correct_kconfigs' into 'master'

Correct Kconfigs according to the coding style

See merge request idf/esp-idf!4172
This commit is contained in:
Angus Gratton 2019-01-30 09:24:22 +08:00
commit 0a2b54d2e3
106 changed files with 7563 additions and 7535 deletions

View File

@ -1,22 +1,21 @@
menu "Application manager" menu "Application manager"
config APP_COMPILE_TIME_DATE config APP_COMPILE_TIME_DATE
bool "Use time/date stamp for app" bool "Use time/date stamp for app"
default y default y
help help
If set, then the app will be built with the current time/date stamp. It is stored in the app description structure. If set, then the app will be built with the current time/date stamp. It is stored in the app description
If not set, time/date stamp will be excluded from app image. structure. If not set, time/date stamp will be excluded from app image. This can be useful for getting the
This can be useful for getting the same binary image files made from the same source, same binary image files made from the same source, but at different times.
but at different times.
config APP_EXCLUDE_PROJECT_VER_VAR config APP_EXCLUDE_PROJECT_VER_VAR
bool "Exclude PROJECT_VER from firmware image" bool "Exclude PROJECT_VER from firmware image"
default n default n
help help
The PROJECT_VER variable from the build system will not affect the firmware image. The PROJECT_VER variable from the build system will not affect the firmware image.
This value will not be contained in the esp_app_desc structure. This value will not be contained in the esp_app_desc structure.
config APP_EXCLUDE_PROJECT_NAME_VAR config APP_EXCLUDE_PROJECT_NAME_VAR
bool "Exclude PROJECT_NAME from firmware image" bool "Exclude PROJECT_NAME from firmware image"
default n default n
help help

View File

@ -86,7 +86,7 @@ config AWS_IOT_MQTT_MAX_RECONNECT_WAIT_INTERVAL
menu "Thing Shadow" menu "Thing Shadow"
depends on AWS_IOT_SDK depends on AWS_IOT_SDK
config AWS_IOT_OVERRIDE_THING_SHADOW_RX_BUFFER config AWS_IOT_OVERRIDE_THING_SHADOW_RX_BUFFER
bool "Override Shadow RX buffer size" bool "Override Shadow RX buffer size"
depends on AWS_IOT_SDK depends on AWS_IOT_SDK
default n default n
@ -95,9 +95,10 @@ config AWS_IOT_OVERRIDE_THING_SHADOW_RX_BUFFER
size. This is the maximum size of a Thing Shadow size. This is the maximum size of a Thing Shadow
message in bytes, plus one. message in bytes, plus one.
If not overridden, the default value is the MQTT RX Buffer length plus one. If overriden, do not set higher than the default value. If not overridden, the default value is the MQTT RX Buffer length plus one. If overriden, do not set
higher than the default value.
config AWS_IOT_SHADOW_MAX_SIZE_OF_RX_BUFFER config AWS_IOT_SHADOW_MAX_SIZE_OF_RX_BUFFER
int "Maximum RX Buffer (bytes)" int "Maximum RX Buffer (bytes)"
depends on AWS_IOT_OVERRIDE_THING_SHADOW_RX_BUFFER depends on AWS_IOT_OVERRIDE_THING_SHADOW_RX_BUFFER
default 513 default 513
@ -108,7 +109,7 @@ config AWS_IOT_SHADOW_MAX_SIZE_OF_RX_BUFFER
plus one. plus one.
config AWS_IOT_SHADOW_MAX_SIZE_OF_UNIQUE_CLIENT_ID_BYTES config AWS_IOT_SHADOW_MAX_SIZE_OF_UNIQUE_CLIENT_ID_BYTES
int "Maximum unique client ID size (bytes)" int "Maximum unique client ID size (bytes)"
depends on AWS_IOT_SDK depends on AWS_IOT_SDK
default 80 default 80
@ -116,38 +117,43 @@ config AWS_IOT_SHADOW_MAX_SIZE_OF_UNIQUE_CLIENT_ID_BYTES
help help
Maximum size of the Unique Client Id. Maximum size of the Unique Client Id.
config AWS_IOT_SHADOW_MAX_SIMULTANEOUS_ACKS config AWS_IOT_SHADOW_MAX_SIMULTANEOUS_ACKS
int "Maximum simultaneous responses" int "Maximum simultaneous responses"
depends on AWS_IOT_SDK depends on AWS_IOT_SDK
default 10 default 10
range 1 100 range 1 100
help help
At any given time we will wait for this many responses. This will correlate to the rate at which the shadow actions are requested At any given time we will wait for this many responses. This will correlate to the rate at which the
shadow actions are requested
config AWS_IOT_SHADOW_MAX_SIMULTANEOUS_THINGNAMES config AWS_IOT_SHADOW_MAX_SIMULTANEOUS_THINGNAMES
int "Maximum simultaneous Thing Name operations" int "Maximum simultaneous Thing Name operations"
depends on AWS_IOT_SDK depends on AWS_IOT_SDK
default 10 default 10
range 1 100 range 1 100
help help
We could perform shadow action on any thing Name and this is maximum Thing Names we can act on at any given time We could perform shadow action on any thing Name and this is maximum Thing Names we can act on at any
given time
config AWS_IOT_SHADOW_MAX_JSON_TOKEN_EXPECTED config AWS_IOT_SHADOW_MAX_JSON_TOKEN_EXPECTED
int "Maximum expected JSON tokens" int "Maximum expected JSON tokens"
depends on AWS_IOT_SDK depends on AWS_IOT_SDK
default 120 default 120
help help
These are the max tokens that is expected to be in the Shadow JSON document. Includes the metadata which is published These are the max tokens that is expected to be in the Shadow JSON document. Includes the metadata which
is published
config AWS_IOT_SHADOW_MAX_SHADOW_TOPIC_LENGTH_WITHOUT_THINGNAME config AWS_IOT_SHADOW_MAX_SHADOW_TOPIC_LENGTH_WITHOUT_THINGNAME
int "Maximum topic length (not including Thing Name)" int "Maximum topic length (not including Thing Name)"
depends on AWS_IOT_SDK depends on AWS_IOT_SDK
default 60 default 60
range 10 1000 range 10 1000
help help
All shadow actions have to be published or subscribed to a topic which is of the format $aws/things/{thingName}/shadow/update/accepted. This refers to the size of the topic without the Thing Name All shadow actions have to be published or subscribed to a topic which is of the format
$aws/things/{thingName}/shadow/update/accepted. This refers to the size of the topic without the Thing
Name
config AWS_IOT_SHADOW_MAX_SIZE_OF_THING_NAME config AWS_IOT_SHADOW_MAX_SIZE_OF_THING_NAME
int "Maximum Thing Name length" int "Maximum Thing Name length"
depends on AWS_IOT_SDK depends on AWS_IOT_SDK
default 20 default 20
@ -156,4 +162,3 @@ config AWS_IOT_SHADOW_MAX_SIZE_OF_THING_NAME
Maximum length of a Thing Name. Maximum length of a Thing Name.
endmenu # Thing Shadow endmenu # Thing Shadow

View File

@ -1,25 +1,25 @@
menu "Bootloader config" menu "Bootloader config"
choice LOG_BOOTLOADER_LEVEL choice LOG_BOOTLOADER_LEVEL
bool "Bootloader log verbosity" bool "Bootloader log verbosity"
default LOG_BOOTLOADER_LEVEL_INFO default LOG_BOOTLOADER_LEVEL_INFO
help help
Specify how much output to see in bootloader logs. Specify how much output to see in bootloader logs.
config LOG_BOOTLOADER_LEVEL_NONE config LOG_BOOTLOADER_LEVEL_NONE
bool "No output" bool "No output"
config LOG_BOOTLOADER_LEVEL_ERROR config LOG_BOOTLOADER_LEVEL_ERROR
bool "Error" bool "Error"
config LOG_BOOTLOADER_LEVEL_WARN config LOG_BOOTLOADER_LEVEL_WARN
bool "Warning" bool "Warning"
config LOG_BOOTLOADER_LEVEL_INFO config LOG_BOOTLOADER_LEVEL_INFO
bool "Info" bool "Info"
config LOG_BOOTLOADER_LEVEL_DEBUG config LOG_BOOTLOADER_LEVEL_DEBUG
bool "Debug" bool "Debug"
config LOG_BOOTLOADER_LEVEL_VERBOSE config LOG_BOOTLOADER_LEVEL_VERBOSE
bool "Verbose" bool "Verbose"
endchoice endchoice
config LOG_BOOTLOADER_LEVEL config LOG_BOOTLOADER_LEVEL
int int
default 0 if LOG_BOOTLOADER_LEVEL_NONE default 0 if LOG_BOOTLOADER_LEVEL_NONE
default 1 if LOG_BOOTLOADER_LEVEL_ERROR default 1 if LOG_BOOTLOADER_LEVEL_ERROR
@ -28,41 +28,41 @@ config LOG_BOOTLOADER_LEVEL
default 4 if LOG_BOOTLOADER_LEVEL_DEBUG default 4 if LOG_BOOTLOADER_LEVEL_DEBUG
default 5 if LOG_BOOTLOADER_LEVEL_VERBOSE default 5 if LOG_BOOTLOADER_LEVEL_VERBOSE
config BOOTLOADER_SPI_WP_PIN config BOOTLOADER_SPI_WP_PIN
int "SPI Flash WP Pin when customising pins via efuse (read help)" int "SPI Flash WP Pin when customising pins via eFuse (read help)"
range 0 33 range 0 33
default 7 default 7
depends on FLASHMODE_QIO || FLASHMODE_QOUT depends on FLASHMODE_QIO || FLASHMODE_QOUT
help help
This value is ignored unless flash mode is set to QIO or QOUT *and* the SPI flash pins have been This value is ignored unless flash mode is set to QIO or QOUT *and* the SPI flash pins have been
overriden by setting the efuses SPI_PAD_CONFIG_xxx. overriden by setting the eFuses SPI_PAD_CONFIG_xxx.
When this is the case, the Efuse config only defines 3 of the 4 Quad I/O data pins. The WP pin (aka ESP32 When this is the case, the eFuse config only defines 3 of the 4 Quad I/O data pins. The WP pin (aka ESP32
pin "SD_DATA_3" or SPI flash pin "IO2") is not specified in Efuse. That pin number is compiled into the bootloader pin "SD_DATA_3" or SPI flash pin "IO2") is not specified in eFuse. That pin number is compiled into the
instead. bootloader instead.
The default value (GPIO 7) is correct for WP pin on ESP32-D2WD integrated flash. The default value (GPIO 7) is correct for WP pin on ESP32-D2WD integrated flash.
choice BOOTLOADER_VDDSDIO_BOOST choice BOOTLOADER_VDDSDIO_BOOST
bool "VDDSDIO LDO voltage" bool "VDDSDIO LDO voltage"
default BOOTLOADER_VDDSDIO_BOOST_1_9V default BOOTLOADER_VDDSDIO_BOOST_1_9V
help help
If this option is enabled, and VDDSDIO LDO is set to 1.8V (using EFUSE If this option is enabled, and VDDSDIO LDO is set to 1.8V (using eFuse
or MTDI bootstrapping pin), bootloader will change LDO settings to or MTDI bootstrapping pin), bootloader will change LDO settings to
output 1.9V instead. This helps prevent flash chip from browning out output 1.9V instead. This helps prevent flash chip from browning out
during flash programming operations. during flash programming operations.
This option has no effect if VDDSDIO is set to 3.3V, or if the internal This option has no effect if VDDSDIO is set to 3.3V, or if the internal
VDDSDIO regulator is disabled via efuse. VDDSDIO regulator is disabled via eFuse.
config BOOTLOADER_VDDSDIO_BOOST_1_8V config BOOTLOADER_VDDSDIO_BOOST_1_8V
bool "1.8V" bool "1.8V"
depends on !ESPTOOLPY_FLASHFREQ_80M depends on !ESPTOOLPY_FLASHFREQ_80M
config BOOTLOADER_VDDSDIO_BOOST_1_9V config BOOTLOADER_VDDSDIO_BOOST_1_9V
bool "1.9V" bool "1.9V"
endchoice endchoice
config BOOTLOADER_FACTORY_RESET config BOOTLOADER_FACTORY_RESET
bool "GPIO triggers factory reset" bool "GPIO triggers factory reset"
default N default N
help help
@ -72,7 +72,7 @@ config BOOTLOADER_FACTORY_RESET
The factory reset will occur if there is a GPIO input pulled low while device starts up. The factory reset will occur if there is a GPIO input pulled low while device starts up.
See settings below. See settings below.
config BOOTLOADER_NUM_PIN_FACTORY_RESET config BOOTLOADER_NUM_PIN_FACTORY_RESET
int "Number of the GPIO input for factory reset" int "Number of the GPIO input for factory reset"
depends on BOOTLOADER_FACTORY_RESET depends on BOOTLOADER_FACTORY_RESET
range 0 39 range 0 39
@ -82,24 +82,26 @@ config BOOTLOADER_NUM_PIN_FACTORY_RESET
To trigger a factory reset, this GPIO must be pulled low on reset. To trigger a factory reset, this GPIO must be pulled low on reset.
Note that GPIO34-39 do not have an internal pullup and an external one must be provided. Note that GPIO34-39 do not have an internal pullup and an external one must be provided.
config BOOTLOADER_OTA_DATA_ERASE config BOOTLOADER_OTA_DATA_ERASE
bool "Clear OTA data on factory reset (select factory partition)" bool "Clear OTA data on factory reset (select factory partition)"
depends on BOOTLOADER_FACTORY_RESET depends on BOOTLOADER_FACTORY_RESET
help help
The device will boot from "factory" partition (or OTA slot 0 if no factory partition is present) after a factory reset. The device will boot from "factory" partition (or OTA slot 0 if no factory partition is present) after a
factory reset.
config BOOTLOADER_DATA_FACTORY_RESET config BOOTLOADER_DATA_FACTORY_RESET
string "Comma-separated names of partitions to clear on factory reset" string "Comma-separated names of partitions to clear on factory reset"
depends on BOOTLOADER_FACTORY_RESET depends on BOOTLOADER_FACTORY_RESET
default "nvs" default "nvs"
help help
Allows customers to select which data partitions will be erased while factory reset. Allows customers to select which data partitions will be erased while factory reset.
Specify the names of partitions as a comma-delimited with optional spaces for readability. (Like this: "nvs, phy_init, ...") Specify the names of partitions as a comma-delimited with optional spaces for readability. (Like this:
"nvs, phy_init, ...")
Make sure that the name specified in the partition table and here are the same. Make sure that the name specified in the partition table and here are the same.
Partitions of type "app" cannot be specified here. Partitions of type "app" cannot be specified here.
config BOOTLOADER_APP_TEST config BOOTLOADER_APP_TEST
bool "GPIO triggers boot from test app partition" bool "GPIO triggers boot from test app partition"
default N default N
help help
@ -107,7 +109,7 @@ config BOOTLOADER_APP_TEST
A boot from "test" partition will occur if there is a GPIO input pulled low while device starts up. A boot from "test" partition will occur if there is a GPIO input pulled low while device starts up.
See settings below. See settings below.
config BOOTLOADER_NUM_PIN_APP_TEST config BOOTLOADER_NUM_PIN_APP_TEST
int "Number of the GPIO input to boot TEST partition" int "Number of the GPIO input to boot TEST partition"
depends on BOOTLOADER_APP_TEST depends on BOOTLOADER_APP_TEST
range 0 39 range 0 39
@ -119,7 +121,7 @@ config BOOTLOADER_NUM_PIN_APP_TEST
(factory or OTA[x]). (factory or OTA[x]).
Note that GPIO34-39 do not have an internal pullup and an external one must be provided. Note that GPIO34-39 do not have an internal pullup and an external one must be provided.
config BOOTLOADER_HOLD_TIME_GPIO config BOOTLOADER_HOLD_TIME_GPIO
int "Hold time of GPIO for reset/test mode (seconds)" int "Hold time of GPIO for reset/test mode (seconds)"
depends on BOOTLOADER_FACTORY_RESET || BOOTLOADER_APP_TEST depends on BOOTLOADER_FACTORY_RESET || BOOTLOADER_APP_TEST
default 5 default 5
@ -127,18 +129,20 @@ config BOOTLOADER_HOLD_TIME_GPIO
The GPIO must be held low continuously for this period of time after reset The GPIO must be held low continuously for this period of time after reset
before a factory reset or test partition boot (as applicable) is performed. before a factory reset or test partition boot (as applicable) is performed.
config BOOTLOADER_WDT_ENABLE config BOOTLOADER_WDT_ENABLE
bool "Use RTC watchdog in start code" bool "Use RTC watchdog in start code"
default y default y
help help
Tracks the execution time of startup code. Tracks the execution time of startup code.
If the execution time is exceeded, the RTC_WDT will restart system. If the execution time is exceeded, the RTC_WDT will restart system.
It is also useful to prevent a lock up in start code caused by an unstable power source. It is also useful to prevent a lock up in start code caused by an unstable power source.
NOTE: Tracks the execution time starts from the bootloader code - re-set timeout, while selecting the source for slow_clk - and ends calling app_main. NOTE: Tracks the execution time starts from the bootloader code - re-set timeout, while selecting the
Re-set timeout is needed due to WDT uses a SLOW_CLK clock source. After changing a frequency slow_clk a time of WDT needs to re-set for new frequency. source for slow_clk - and ends calling app_main.
Re-set timeout is needed due to WDT uses a SLOW_CLK clock source. After changing a frequency slow_clk a
time of WDT needs to re-set for new frequency.
slow_clk depends on ESP32_RTC_CLOCK_SOURCE (INTERNAL_RC or EXTERNAL_CRYSTAL). slow_clk depends on ESP32_RTC_CLOCK_SOURCE (INTERNAL_RC or EXTERNAL_CRYSTAL).
config BOOTLOADER_WDT_DISABLE_IN_USER_CODE config BOOTLOADER_WDT_DISABLE_IN_USER_CODE
bool "Allows RTC watchdog disable in user code" bool "Allows RTC watchdog disable in user code"
depends on BOOTLOADER_WDT_ENABLE depends on BOOTLOADER_WDT_ENABLE
default n default n
@ -148,7 +152,7 @@ config BOOTLOADER_WDT_DISABLE_IN_USER_CODE
Use function rtc_wdt_feed() for resetting counter of rtc_wdt. Use function rtc_wdt_feed() for resetting counter of rtc_wdt.
Use function rtc_wdt_disable() for disabling rtc_wdt. Use function rtc_wdt_disable() for disabling rtc_wdt.
config BOOTLOADER_WDT_TIME_MS config BOOTLOADER_WDT_TIME_MS
int "Timeout for RTC watchdog (ms)" int "Timeout for RTC watchdog (ms)"
depends on BOOTLOADER_WDT_ENABLE depends on BOOTLOADER_WDT_ENABLE
default 9000 default 9000
@ -159,16 +163,15 @@ config BOOTLOADER_WDT_TIME_MS
- these options can increase the execution time. - these options can increase the execution time.
Note: RTC_WDT will reset while encryption operations will be performed. Note: RTC_WDT will reset while encryption operations will be performed.
config APP_ROLLBACK_ENABLE config APP_ROLLBACK_ENABLE
bool "Enable app rollback support" bool "Enable app rollback support"
default n default n
help help
After updating the app, the bootloader runs a new app with the "ESP_OTA_IMG_PENDING_VERIFY" state set. After updating the app, the bootloader runs a new app with the "ESP_OTA_IMG_PENDING_VERIFY" state set.
This state prevents the re-run of this app. This state prevents the re-run of this app. After the first boot of the new app in the user code, the
After the first boot of the new app in the user code, the function should be called to confirm function should be called to confirm the operability of the app or vice versa about its non-operability.
the operability of the app or vice versa about its non-operability. If the app is working, If the app is working, then it is marked as valid. Otherwise, it is marked as not valid and rolls back to
then it is marked as valid. Otherwise, it is marked as not valid and rolls back to the previous working app. the previous working app. A reboot is performed, and the app is booted before the software update.
A reboot is performed, and the app is booted before the software update.
Note: If during the first boot a new app the power goes out or the WDT works, then roll back will happen. Note: If during the first boot a new app the power goes out or the WDT works, then roll back will happen.
endmenu # Bootloader endmenu # Bootloader
@ -176,103 +179,117 @@ endmenu # Bootloader
menu "Security features" menu "Security features"
# These three are the actual options to check in code, # These three are the actual options to check in code,
# selected by the displayed options # selected by the displayed options
config SECURE_SIGNED_ON_BOOT config SECURE_SIGNED_ON_BOOT
bool bool
default y default y
depends on SECURE_BOOT_ENABLED || SECURE_SIGNED_ON_BOOT_NO_SECURE_BOOT depends on SECURE_BOOT_ENABLED || SECURE_SIGNED_ON_BOOT_NO_SECURE_BOOT
config SECURE_SIGNED_ON_UPDATE config SECURE_SIGNED_ON_UPDATE
bool bool
default y default y
depends on SECURE_BOOT_ENABLED || SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT depends on SECURE_BOOT_ENABLED || SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
config SECURE_SIGNED_APPS config SECURE_SIGNED_APPS
bool bool
default y default y
depends on SECURE_SIGNED_ON_BOOT || SECURE_SIGNED_ON_UPDATE depends on SECURE_SIGNED_ON_BOOT || SECURE_SIGNED_ON_UPDATE
config SECURE_SIGNED_APPS_NO_SECURE_BOOT config SECURE_SIGNED_APPS_NO_SECURE_BOOT
bool "Require signed app images" bool "Require signed app images"
default n default n
depends on !SECURE_BOOT_ENABLED depends on !SECURE_BOOT_ENABLED
help help
Require apps to be signed to verify their integrity. Require apps to be signed to verify their integrity.
This option uses the same app signature scheme as hardware secure boot, but unlike hardware secure boot it does not prevent the bootloader from being physically updated. This means that the device can be secured against remote network access, but not physical access. Compared to using hardware Secure Boot this option is much simpler to implement. This option uses the same app signature scheme as hardware secure boot, but unlike hardware secure boot it
does not prevent the bootloader from being physically updated. This means that the device can be secured
against remote network access, but not physical access. Compared to using hardware Secure Boot this option
is much simpler to implement.
config SECURE_SIGNED_ON_BOOT_NO_SECURE_BOOT config SECURE_SIGNED_ON_BOOT_NO_SECURE_BOOT
bool "Bootloader verifies app signatures" bool "Bootloader verifies app signatures"
default n default n
depends on SECURE_SIGNED_APPS_NO_SECURE_BOOT depends on SECURE_SIGNED_APPS_NO_SECURE_BOOT
help help
If this option is set, the bootloader will be compiled with code to verify that an app is signed before booting it. If this option is set, the bootloader will be compiled with code to verify that an app is signed before
booting it.
If hardware secure boot is enabled, this option is always enabled and cannot be disabled. If hardware secure boot is enabled, this option is always enabled and cannot be disabled.
If hardware secure boot is not enabled, this option doesn't add significant security by itself so most users will want to leave it disabled. If hardware secure boot is not enabled, this option doesn't add significant security by itself so most
users will want to leave it disabled.
config SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT config SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT
bool "Verify app signature on update" bool "Verify app signature on update"
default y default y
depends on SECURE_SIGNED_APPS_NO_SECURE_BOOT depends on SECURE_SIGNED_APPS_NO_SECURE_BOOT
help help
If this option is set, any OTA updated apps will have the signature verified before being considered valid. If this option is set, any OTA updated apps will have the signature verified before being considered valid.
When enabled, the signature is automatically checked whenever the esp_ota_ops.h APIs are used for OTA updates, When enabled, the signature is automatically checked whenever the esp_ota_ops.h APIs are used for OTA
or esp_image_format.h APIs are used to verify apps. updates, or esp_image_format.h APIs are used to verify apps.
If hardware secure boot is enabled, this option is always enabled and cannot be disabled. If hardware secure boot is enabled, this option is always enabled and cannot be disabled.
If hardware secure boot is not enabled, this option still adds significant security against network-based attackers by preventing spoofing of OTA updates. If hardware secure boot is not enabled, this option still adds significant security against network-based
attackers by preventing spoofing of OTA updates.
config SECURE_BOOT_ENABLED config SECURE_BOOT_ENABLED
bool "Enable hardware secure boot in bootloader (READ DOCS FIRST)" bool "Enable hardware secure boot in bootloader (READ DOCS FIRST)"
default n default n
help help
Build a bootloader which enables secure boot on first boot. Build a bootloader which enables secure boot on first boot.
Once enabled, secure boot will not boot a modified bootloader. The bootloader will only load a partition table or boot an app if the data has a verified digital signature. There are implications for reflashing updated apps once secure boot is enabled. Once enabled, secure boot will not boot a modified bootloader. The bootloader will only load a partition
table or boot an app if the data has a verified digital signature. There are implications for reflashing
updated apps once secure boot is enabled.
When enabling secure boot, JTAG and ROM BASIC Interpreter are permanently disabled by default. When enabling secure boot, JTAG and ROM BASIC Interpreter are permanently disabled by default.
Refer to https://docs.espressif.com/projects/esp-idf/en/latest/security/secure-boot.html before enabling. Refer to https://docs.espressif.com/projects/esp-idf/en/latest/security/secure-boot.html before enabling.
choice SECURE_BOOTLOADER_MODE choice SECURE_BOOTLOADER_MODE
bool "Secure bootloader mode" bool "Secure bootloader mode"
depends on SECURE_BOOT_ENABLED depends on SECURE_BOOT_ENABLED
default SECURE_BOOTLOADER_ONE_TIME_FLASH default SECURE_BOOTLOADER_ONE_TIME_FLASH
config SECURE_BOOTLOADER_ONE_TIME_FLASH config SECURE_BOOTLOADER_ONE_TIME_FLASH
bool "One-time flash" bool "One-time flash"
help help
On first boot, the bootloader will generate a key which is not readable externally or by software. A digest is generated from the bootloader image itself. This digest will be verified on each subsequent boot. On first boot, the bootloader will generate a key which is not readable externally or by software. A
digest is generated from the bootloader image itself. This digest will be verified on each subsequent
boot.
Enabling this option means that the bootloader cannot be changed after the first time it is booted. Enabling this option means that the bootloader cannot be changed after the first time it is booted.
config SECURE_BOOTLOADER_REFLASHABLE config SECURE_BOOTLOADER_REFLASHABLE
bool "Reflashable" bool "Reflashable"
help help
Generate a reusable secure bootloader key, derived (via SHA-256) from the secure boot signing key. Generate a reusable secure bootloader key, derived (via SHA-256) from the secure boot signing key.
This allows the secure bootloader to be re-flashed by anyone with access to the secure boot signing key. This allows the secure bootloader to be re-flashed by anyone with access to the secure boot signing
key.
This option is less secure than one-time flash, because a leak of the digest key from one device allows reflashing of any device that uses it. This option is less secure than one-time flash, because a leak of the digest key from one device
allows reflashing of any device that uses it.
endchoice endchoice
config SECURE_BOOT_BUILD_SIGNED_BINARIES config SECURE_BOOT_BUILD_SIGNED_BINARIES
bool "Sign binaries during build" bool "Sign binaries during build"
depends on SECURE_SIGNED_APPS depends on SECURE_SIGNED_APPS
default y default y
help help
Once secure boot or signed app requirement is enabled, app images are required to be signed. Once secure boot or signed app requirement is enabled, app images are required to be signed.
If enabled (default), these binary files are signed as part of the build process. The file named in "Secure boot private signing key" will be used to sign the image. If enabled (default), these binary files are signed as part of the build process. The file named in
"Secure boot private signing key" will be used to sign the image.
If disabled, unsigned app/partition data will be built. They must be signed manually using espsecure.py (for example, on a remote signing server.) If disabled, unsigned app/partition data will be built. They must be signed manually using espsecure.py
(for example, on a remote signing server.)
config SECURE_BOOT_SIGNING_KEY config SECURE_BOOT_SIGNING_KEY
string "Secure boot private signing key" string "Secure boot private signing key"
depends on SECURE_BOOT_BUILD_SIGNED_BINARIES depends on SECURE_BOOT_BUILD_SIGNED_BINARIES
default secure_boot_signing_key.pem default secure_boot_signing_key.pem
@ -286,15 +303,15 @@ config SECURE_BOOT_SIGNING_KEY
You can generate a new signing key by running the following command: You can generate a new signing key by running the following command:
espsecure.py generate_signing_key secure_boot_signing_key.pem espsecure.py generate_signing_key secure_boot_signing_key.pem
See docs/security/secure-boot.rst for details. See https://docs.espressif.com/projects/esp-idf/en/latest/security/secure-boot.html for details.
config SECURE_BOOT_VERIFICATION_KEY config SECURE_BOOT_VERIFICATION_KEY
string "Secure boot public signature verification key" string "Secure boot public signature verification key"
depends on SECURE_SIGNED_APPS && !SECURE_BOOT_BUILD_SIGNED_BINARIES depends on SECURE_SIGNED_APPS && !SECURE_BOOT_BUILD_SIGNED_BINARIES
default signature_verification_key.bin default signature_verification_key.bin
help help
Path to a public key file used to verify signed images. This key is compiled into the bootloader and/or app, Path to a public key file used to verify signed images. This key is compiled into the bootloader and/or
to verify app images. app, to verify app images.
Key file is in raw binary format, and can be extracted from a Key file is in raw binary format, and can be extracted from a
PEM formatted private key using the espsecure.py PEM formatted private key using the espsecure.py
@ -302,39 +319,42 @@ config SECURE_BOOT_VERIFICATION_KEY
Refer to https://docs.espressif.com/projects/esp-idf/en/latest/security/secure-boot.html before enabling. Refer to https://docs.espressif.com/projects/esp-idf/en/latest/security/secure-boot.html before enabling.
choice SECURE_BOOTLOADER_KEY_ENCODING choice SECURE_BOOTLOADER_KEY_ENCODING
bool "Hardware Key Encoding" bool "Hardware Key Encoding"
depends on SECURE_BOOTLOADER_REFLASHABLE depends on SECURE_BOOTLOADER_REFLASHABLE
default SECURE_BOOTLOADER_NO_ENCODING default SECURE_BOOTLOADER_NO_ENCODING
help help
In reflashable secure bootloader mode, a hardware key is derived from the signing key (with SHA-256) and can be written to efuse In reflashable secure bootloader mode, a hardware key is derived from the signing key (with SHA-256) and
with espefuse.py. can be written to eFuse with espefuse.py.
Normally this is a 256-bit key, but if 3/4 Coding Scheme is used on the device then the efuse key is truncated to 192 bits. Normally this is a 256-bit key, but if 3/4 Coding Scheme is used on the device then the eFuse key is
truncated to 192 bits.
This configuration item doesn't change any firmware code, it only changes the size of key binary which is generated at build time. This configuration item doesn't change any firmware code, it only changes the size of key binary which is
generated at build time.
config SECURE_BOOTLOADER_KEY_ENCODING_256BIT config SECURE_BOOTLOADER_KEY_ENCODING_256BIT
bool "No encoding (256 bit key)" bool "No encoding (256 bit key)"
config SECURE_BOOTLOADER_KEY_ENCODING_192BIT config SECURE_BOOTLOADER_KEY_ENCODING_192BIT
bool "3/4 encoding (192 bit key)" bool "3/4 encoding (192 bit key)"
endchoice endchoice
config SECURE_BOOT_INSECURE config SECURE_BOOT_INSECURE
bool "Allow potentially insecure options" bool "Allow potentially insecure options"
depends on SECURE_BOOT_ENABLED depends on SECURE_BOOT_ENABLED
default N default N
help help
You can disable some of the default protections offered by secure boot, in order to enable testing or a custom combination of security features. You can disable some of the default protections offered by secure boot, in order to enable testing or a
custom combination of security features.
Only enable these options if you are very sure. Only enable these options if you are very sure.
Refer to https://docs.espressif.com/projects/esp-idf/en/latest/security/secure-boot.html before enabling. Refer to https://docs.espressif.com/projects/esp-idf/en/latest/security/secure-boot.html before enabling.
config FLASH_ENCRYPTION_ENABLED config FLASH_ENCRYPTION_ENABLED
bool "Enable flash encryption on boot (READ DOCS FIRST)" bool "Enable flash encryption on boot (READ DOCS FIRST)"
default N default N
help help
@ -345,27 +365,29 @@ config FLASH_ENCRYPTION_ENABLED
Read https://docs.espressif.com/projects/esp-idf/en/latest/security/flash-encryption.html before enabling. Read https://docs.espressif.com/projects/esp-idf/en/latest/security/flash-encryption.html before enabling.
config FLASH_ENCRYPTION_INSECURE config FLASH_ENCRYPTION_INSECURE
bool "Allow potentially insecure options" bool "Allow potentially insecure options"
depends on FLASH_ENCRYPTION_ENABLED depends on FLASH_ENCRYPTION_ENABLED
default N default N
help help
You can disable some of the default protections offered by flash encryption, in order to enable testing or a custom combination of security features. You can disable some of the default protections offered by flash encryption, in order to enable testing or
a custom combination of security features.
Only enable these options if you are very sure. Only enable these options if you are very sure.
Refer to docs/security/secure-boot.rst and docs/security/flash-encryption.rst for details. Refer to https://docs.espressif.com/projects/esp-idf/en/latest/security/secure-boot.html and
https://docs.espressif.com/projects/esp-idf/en/latest/security/flash-encryption.html for details.
menu "Potentially insecure options" menu "Potentially insecure options"
visible if FLASH_ENCRYPTION_INSECURE || SECURE_BOOT_INSECURE visible if FLASH_ENCRYPTION_INSECURE || SECURE_BOOT_INSECURE
# NOTE: Options in this menu NEED to have SECURE_BOOT_INSECURE # NOTE: Options in this menu NEED to have SECURE_BOOT_INSECURE
# and/or FLASH_ENCRYPTION_INSECURE in "depends on", as the menu # and/or FLASH_ENCRYPTION_INSECURE in "depends on", as the menu
# itself doesn't enable/disable its children (if it's not set, # itself doesn't enable/disable its children (if it's not set,
# it's possible for the insecure menu to be disabled but the insecure option # it's possible for the insecure menu to be disabled but the insecure option
# to remain on which is very bad.) # to remain on which is very bad.)
config SECURE_BOOT_ALLOW_ROM_BASIC config SECURE_BOOT_ALLOW_ROM_BASIC
bool "Leave ROM BASIC Interpreter available on reset" bool "Leave ROM BASIC Interpreter available on reset"
depends on SECURE_BOOT_INSECURE || FLASH_ENCRYPTION_INSECURE depends on SECURE_BOOT_INSECURE || FLASH_ENCRYPTION_INSECURE
default N default N
@ -374,68 +396,79 @@ config SECURE_BOOT_ALLOW_ROM_BASIC
read from the flash. read from the flash.
When either flash encryption or secure boot are enabled, the default is to When either flash encryption or secure boot are enabled, the default is to
disable this BASIC fallback mode permanently via efuse. disable this BASIC fallback mode permanently via eFuse.
If this option is set, this efuse is not burned and the BASIC ROM Console may If this option is set, this eFuse is not burned and the BASIC ROM Console may
remain accessible. Only set this option in testing environments. remain accessible. Only set this option in testing environments.
config SECURE_BOOT_ALLOW_JTAG config SECURE_BOOT_ALLOW_JTAG
bool "Allow JTAG Debugging" bool "Allow JTAG Debugging"
depends on SECURE_BOOT_INSECURE || FLASH_ENCRYPTION_INSECURE depends on SECURE_BOOT_INSECURE || FLASH_ENCRYPTION_INSECURE
default N default N
help help
If not set (default), the bootloader will permanently disable JTAG (across entire chip) on first boot when either secure boot or flash encryption is enabled. If not set (default), the bootloader will permanently disable JTAG (across entire chip) on first boot
when either secure boot or flash encryption is enabled.
Setting this option leaves JTAG on for debugging, which negates all protections of flash encryption and some of the protections of secure boot. Setting this option leaves JTAG on for debugging, which negates all protections of flash encryption
and some of the protections of secure boot.
Only set this option in testing environments. Only set this option in testing environments.
config SECURE_BOOT_ALLOW_SHORT_APP_PARTITION config SECURE_BOOT_ALLOW_SHORT_APP_PARTITION
bool "Allow app partition length not 64KB aligned" bool "Allow app partition length not 64KB aligned"
depends on SECURE_BOOT_INSECURE depends on SECURE_BOOT_INSECURE
help help
If not set (default), app partition size must be a multiple of 64KB. App images are padded to 64KB length, and the bootloader checks any trailing bytes after the signature (before the next 64KB boundary) have not been written. This is because flash cache maps entire 64KB pages into the address space. This prevents an attacker from appending unverified data after the app image in the flash, causing it to be mapped into the address space. If not set (default), app partition size must be a multiple of 64KB. App images are padded to 64KB
length, and the bootloader checks any trailing bytes after the signature (before the next 64KB
boundary) have not been written. This is because flash cache maps entire 64KB pages into the address
space. This prevents an attacker from appending unverified data after the app image in the flash,
causing it to be mapped into the address space.
Setting this option allows the app partition length to be unaligned, and disables padding of the app image to this length. It is generally not recommended to set this option, unless you have a legacy partitioning scheme which doesn't support 64KB aligned partition lengths. Setting this option allows the app partition length to be unaligned, and disables padding of the app
image to this length. It is generally not recommended to set this option, unless you have a legacy
partitioning scheme which doesn't support 64KB aligned partition lengths.
config FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_ENCRYPT config FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_ENCRYPT
bool "Leave UART bootloader encryption enabled" bool "Leave UART bootloader encryption enabled"
depends on FLASH_ENCRYPTION_INSECURE depends on FLASH_ENCRYPTION_INSECURE
default N default N
help help
If not set (default), the bootloader will permanently disable UART bootloader encryption access on first boot. If set, the UART bootloader will still be able to access hardware encryption. If not set (default), the bootloader will permanently disable UART bootloader encryption access on
first boot. If set, the UART bootloader will still be able to access hardware encryption.
It is recommended to only set this option in testing environments. It is recommended to only set this option in testing environments.
config FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_DECRYPT config FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_DECRYPT
bool "Leave UART bootloader decryption enabled" bool "Leave UART bootloader decryption enabled"
depends on FLASH_ENCRYPTION_INSECURE depends on FLASH_ENCRYPTION_INSECURE
default N default N
help help
If not set (default), the bootloader will permanently disable UART bootloader decryption access on first boot. If set, the UART bootloader will still be able to access hardware decryption. If not set (default), the bootloader will permanently disable UART bootloader decryption access on
first boot. If set, the UART bootloader will still be able to access hardware decryption.
Only set this option in testing environments. Setting this option allows complete bypass of flash encryption. Only set this option in testing environments. Setting this option allows complete bypass of flash
encryption.
config FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_CACHE config FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_CACHE
bool "Leave UART bootloader flash cache enabled" bool "Leave UART bootloader flash cache enabled"
depends on FLASH_ENCRYPTION_INSECURE depends on FLASH_ENCRYPTION_INSECURE
default N default N
help help
If not set (default), the bootloader will permanently disable UART bootloader flash cache access on first boot. If set, the UART bootloader will still be able to access the flash cache. If not set (default), the bootloader will permanently disable UART bootloader flash cache access on
first boot. If set, the UART bootloader will still be able to access the flash cache.
Only set this option in testing environments. Only set this option in testing environments.
config SECURE_BOOT_TEST_MODE config SECURE_BOOT_TEST_MODE
bool "Secure boot test mode: don't permanently set any efuses" bool "Secure boot test mode: don't permanently set any eFuses"
depends on SECURE_BOOT_INSECURE depends on SECURE_BOOT_INSECURE
default N default N
help help
If this option is set, all permanent secure boot changes (via Efuse) are disabled. If this option is set, all permanent secure boot changes (via eFuse) are disabled.
Log output will state changes which would be applied, but they will not be. Log output will state changes which would be applied, but they will not be.
This option is for testing purposes only - it completely disables secure boot protection. This option is for testing purposes only - it completely disables secure boot protection.
endmenu # Potentially Insecure
endmenu # Potentially Insecure
endmenu # Security features endmenu # Security features

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
menu "Driver configurations" menu "Driver configurations"
menu "ADC configuration" menu "ADC configuration"
config ADC_FORCE_XPD_FSM config ADC_FORCE_XPD_FSM
bool "Use the FSM to control ADC power" bool "Use the FSM to control ADC power"
default n default n
help help
@ -10,19 +10,20 @@ config ADC_FORCE_XPD_FSM
be shut off when it is not working leading to lower power consumption. However be shut off when it is not working leading to lower power consumption. However
using the FSM control ADC power will increase the noise of ADC. using the FSM control ADC power will increase the noise of ADC.
config ADC2_DISABLE_DAC config ADC2_DISABLE_DAC
bool "Disable DAC when ADC2 is used on GPIO 25 and 26" bool "Disable DAC when ADC2 is used on GPIO 25 and 26"
default y default y
help help
If this is set, the ADC2 driver will disables the output of the DAC corresponding to the specified channel. This is the default value. If this is set, the ADC2 driver will disables the output of the DAC corresponding to the specified
channel. This is the default value.
For testing, disable this option so that we can measure the output of DAC by internal ADC. For testing, disable this option so that we can measure the output of DAC by internal ADC.
endmenu # ADC Configuration endmenu # ADC Configuration
menu "SPI configuration" menu "SPI configuration"
config SPI_MASTER_IN_IRAM config SPI_MASTER_IN_IRAM
bool "Place transmitting functions of SPI master into IRAM" bool "Place transmitting functions of SPI master into IRAM"
default n default n
select SPI_MASTER_ISR_IN_IRAM select SPI_MASTER_ISR_IN_IRAM
@ -37,7 +38,7 @@ config SPI_MASTER_IN_IRAM
During unit test, this is enabled to measure the ideal case of api. During unit test, this is enabled to measure the ideal case of api.
config SPI_MASTER_ISR_IN_IRAM config SPI_MASTER_ISR_IN_IRAM
bool "Place SPI master ISR function into IRAM" bool "Place SPI master ISR function into IRAM"
default y default y
help help
@ -46,7 +47,7 @@ config SPI_MASTER_ISR_IN_IRAM
Also you can forbid the ISR being disabled during flash writing Also you can forbid the ISR being disabled during flash writing
access, by add ESP_INTR_FLAG_IRAM when initializing the driver. access, by add ESP_INTR_FLAG_IRAM when initializing the driver.
config SPI_SLAVE_IN_IRAM config SPI_SLAVE_IN_IRAM
bool "Place transmitting functions of SPI slave into IRAM" bool "Place transmitting functions of SPI slave into IRAM"
default n default n
select SPI_SLAVE_ISR_IN_IRAM select SPI_SLAVE_ISR_IN_IRAM
@ -59,7 +60,7 @@ config SPI_SLAVE_IN_IRAM
Enable this to put ``queue_trans``, ``get_trans_result`` and Enable this to put ``queue_trans``, ``get_trans_result`` and
``transmit`` functions into the IRAM to avoid possible cache miss. ``transmit`` functions into the IRAM to avoid possible cache miss.
config SPI_SLAVE_ISR_IN_IRAM config SPI_SLAVE_ISR_IN_IRAM
bool "Place SPI slave ISR function into IRAM" bool "Place SPI slave ISR function into IRAM"
default y default y
help help
@ -68,6 +69,6 @@ config SPI_SLAVE_ISR_IN_IRAM
Also you can forbid the ISR being disabled during flash writing Also you can forbid the ISR being disabled during flash writing
access, by add ESP_INTR_FLAG_IRAM when initializing the driver. access, by add ESP_INTR_FLAG_IRAM when initializing the driver.
endmenu # SPI Configuration endmenu # SPI Configuration
endmenu # Driver configurations endmenu # Driver configurations

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
menu "ADC-Calibration" menu "ADC-Calibration"
config ADC_CAL_EFUSE_TP_ENABLE config ADC_CAL_EFUSE_TP_ENABLE
bool "Use Two Point Values" bool "Use Two Point Values"
default "y" default "y"
help help
@ -8,7 +8,7 @@ config ADC_CAL_EFUSE_TP_ENABLE
This option will allow the ADC calibration component to characterize the This option will allow the ADC calibration component to characterize the
ADC-Voltage curve using Two Point values if they are available. ADC-Voltage curve using Two Point values if they are available.
config ADC_CAL_EFUSE_VREF_ENABLE config ADC_CAL_EFUSE_VREF_ENABLE
bool "Use eFuse Vref" bool "Use eFuse Vref"
default "y" default "y"
help help
@ -16,7 +16,7 @@ config ADC_CAL_EFUSE_VREF_ENABLE
the ADC calibration component to characterize the ADC-Voltage curve using the ADC calibration component to characterize the ADC-Voltage curve using
eFuse Vref if it is available. eFuse Vref if it is available.
config ADC_CAL_LUT_ENABLE config ADC_CAL_LUT_ENABLE
bool "Use Lookup Tables" bool "Use Lookup Tables"
default "y" default "y"
help help

View File

@ -1,11 +1,11 @@
menu "Event Loop Library" menu "Event Loop Library"
config EVENT_LOOP_PROFILING config EVENT_LOOP_PROFILING
bool "Enable event loop profiling" bool "Enable event loop profiling"
default n default n
help help
Enables collections of statistics in the event loop library such as the number of events posted to/recieved by an event loop, number of Enables collections of statistics in the event loop library such as the number of events posted
callbacks involved, number of events dropped to to a full event loop queue, run time of event handlers, and number of times/run to/recieved by an event loop, number of callbacks involved, number of events dropped to to a full event
time of each event handler. loop queue, run time of event handlers, and number of times/run time of each event handler.
endmenu endmenu

View File

@ -1,7 +1,7 @@
menu "ESP HTTP client" menu "ESP HTTP client"
config ESP_HTTP_CLIENT_ENABLE_HTTPS config ESP_HTTP_CLIENT_ENABLE_HTTPS
bool "Enable https" bool "Enable https"
default y default y
help help

View File

@ -1,12 +1,13 @@
menu "HTTP Server" menu "HTTP Server"
config HTTPD_MAX_REQ_HDR_LEN config HTTPD_MAX_REQ_HDR_LEN
int "Max HTTP Request Header Length" int "Max HTTP Request Header Length"
default 512 default 512
help help
This sets the maximum supported size of headers section in HTTP request packet to be processed by the server This sets the maximum supported size of headers section in HTTP request packet to be processed by the
server
config HTTPD_MAX_URI_LEN config HTTPD_MAX_URI_LEN
int "Max HTTP URI Length" int "Max HTTP URI Length"
default 512 default 512
help help

View File

@ -1,6 +1,6 @@
menu "Serial flasher config" menu "Serial flasher config"
config ESPTOOLPY_PORT config ESPTOOLPY_PORT
string "Default serial port" string "Default serial port"
depends on !IDF_CMAKE depends on !IDF_CMAKE
default "/dev/ttyUSB0" default "/dev/ttyUSB0"
@ -10,7 +10,7 @@ config ESPTOOLPY_PORT
This value is ignored when using the CMake-based build system or idf.py. This value is ignored when using the CMake-based build system or idf.py.
choice ESPTOOLPY_BAUD choice ESPTOOLPY_BAUD
prompt "Default baud rate" prompt "Default baud rate"
depends on !IDF_CMAKE depends on !IDF_CMAKE
default ESPTOOLPY_BAUD_115200B default ESPTOOLPY_BAUD_115200B
@ -20,23 +20,23 @@ choice ESPTOOLPY_BAUD
This value is ignored when using the CMake-based build system or idf.py. This value is ignored when using the CMake-based build system or idf.py.
config ESPTOOLPY_BAUD_115200B config ESPTOOLPY_BAUD_115200B
bool "115200 baud" bool "115200 baud"
config ESPTOOLPY_BAUD_230400B config ESPTOOLPY_BAUD_230400B
bool "230400 baud" bool "230400 baud"
config ESPTOOLPY_BAUD_921600B config ESPTOOLPY_BAUD_921600B
bool "921600 baud" bool "921600 baud"
config ESPTOOLPY_BAUD_2MB config ESPTOOLPY_BAUD_2MB
bool "2Mbaud" bool "2Mbaud"
config ESPTOOLPY_BAUD_OTHER config ESPTOOLPY_BAUD_OTHER
bool "Other baud rate" bool "Other baud rate"
endchoice endchoice
config ESPTOOLPY_BAUD_OTHER_VAL config ESPTOOLPY_BAUD_OTHER_VAL
int "Other baud rate value" if ESPTOOLPY_BAUD_OTHER int "Other baud rate value" if ESPTOOLPY_BAUD_OTHER
default 115200 default 115200
config ESPTOOLPY_BAUD config ESPTOOLPY_BAUD
int int
depends on !IDF_CMAKE depends on !IDF_CMAKE
default 115200 if ESPTOOLPY_BAUD_115200B default 115200 if ESPTOOLPY_BAUD_115200B
@ -45,7 +45,7 @@ config ESPTOOLPY_BAUD
default 2000000 if ESPTOOLPY_BAUD_2MB default 2000000 if ESPTOOLPY_BAUD_2MB
default ESPTOOLPY_BAUD_OTHER_VAL if ESPTOOLPY_BAUD_OTHER default ESPTOOLPY_BAUD_OTHER_VAL if ESPTOOLPY_BAUD_OTHER
config ESPTOOLPY_COMPRESSED config ESPTOOLPY_COMPRESSED
bool "Use compressed upload" bool "Use compressed upload"
depends on !IDF_CMAKE depends on !IDF_CMAKE
default "y" default "y"
@ -54,50 +54,50 @@ config ESPTOOLPY_COMPRESSED
decompress it on the fly before flashing it. For most payloads, this should result in a decompress it on the fly before flashing it. For most payloads, this should result in a
speed increase. speed increase.
choice FLASHMODE choice FLASHMODE
prompt "Flash SPI mode" prompt "Flash SPI mode"
default FLASHMODE_DIO default FLASHMODE_DIO
help help
Mode the flash chip is flashed in, as well as the default mode for the Mode the flash chip is flashed in, as well as the default mode for the
binary to run in. binary to run in.
config FLASHMODE_QIO config FLASHMODE_QIO
bool "QIO" bool "QIO"
config FLASHMODE_QOUT config FLASHMODE_QOUT
bool "QOUT" bool "QOUT"
config FLASHMODE_DIO config FLASHMODE_DIO
bool "DIO" bool "DIO"
config FLASHMODE_DOUT config FLASHMODE_DOUT
bool "DOUT" bool "DOUT"
endchoice endchoice
# Note: we use esptool.py to flash bootloader in # Note: we use esptool.py to flash bootloader in
# dio mode for QIO/QOUT, bootloader then upgrades # dio mode for QIO/QOUT, bootloader then upgrades
# itself to quad mode during initialisation # itself to quad mode during initialisation
config ESPTOOLPY_FLASHMODE config ESPTOOLPY_FLASHMODE
string string
default "dio" if FLASHMODE_QIO default "dio" if FLASHMODE_QIO
default "dio" if FLASHMODE_QOUT default "dio" if FLASHMODE_QOUT
default "dio" if FLASHMODE_DIO default "dio" if FLASHMODE_DIO
default "dout" if FLASHMODE_DOUT default "dout" if FLASHMODE_DOUT
choice ESPTOOLPY_FLASHFREQ choice ESPTOOLPY_FLASHFREQ
prompt "Flash SPI speed" prompt "Flash SPI speed"
default ESPTOOLPY_FLASHFREQ_40M default ESPTOOLPY_FLASHFREQ_40M
help help
The SPI flash frequency to be used. The SPI flash frequency to be used.
config ESPTOOLPY_FLASHFREQ_80M config ESPTOOLPY_FLASHFREQ_80M
bool "80 MHz" bool "80 MHz"
config ESPTOOLPY_FLASHFREQ_40M config ESPTOOLPY_FLASHFREQ_40M
bool "40 MHz" bool "40 MHz"
config ESPTOOLPY_FLASHFREQ_26M config ESPTOOLPY_FLASHFREQ_26M
bool "26 MHz" bool "26 MHz"
config ESPTOOLPY_FLASHFREQ_20M config ESPTOOLPY_FLASHFREQ_20M
bool "20 MHz" bool "20 MHz"
endchoice endchoice
config ESPTOOLPY_FLASHFREQ config ESPTOOLPY_FLASHFREQ
string string
default "80m" if ESPTOOLPY_FLASHFREQ_80M default "80m" if ESPTOOLPY_FLASHFREQ_80M
default "40m" if ESPTOOLPY_FLASHFREQ_40M default "40m" if ESPTOOLPY_FLASHFREQ_40M
@ -105,25 +105,25 @@ config ESPTOOLPY_FLASHFREQ
default "20m" if ESPTOOLPY_FLASHFREQ_20M default "20m" if ESPTOOLPY_FLASHFREQ_20M
choice ESPTOOLPY_FLASHSIZE choice ESPTOOLPY_FLASHSIZE
prompt "Flash size" prompt "Flash size"
default ESPTOOLPY_FLASHSIZE_2MB default ESPTOOLPY_FLASHSIZE_2MB
help help
SPI flash size, in megabytes SPI flash size, in megabytes
config ESPTOOLPY_FLASHSIZE_1MB config ESPTOOLPY_FLASHSIZE_1MB
bool "1 MB" bool "1 MB"
config ESPTOOLPY_FLASHSIZE_2MB config ESPTOOLPY_FLASHSIZE_2MB
bool "2 MB" bool "2 MB"
config ESPTOOLPY_FLASHSIZE_4MB config ESPTOOLPY_FLASHSIZE_4MB
bool "4 MB" bool "4 MB"
config ESPTOOLPY_FLASHSIZE_8MB config ESPTOOLPY_FLASHSIZE_8MB
bool "8 MB" bool "8 MB"
config ESPTOOLPY_FLASHSIZE_16MB config ESPTOOLPY_FLASHSIZE_16MB
bool "16 MB" bool "16 MB"
endchoice endchoice
config ESPTOOLPY_FLASHSIZE config ESPTOOLPY_FLASHSIZE
string string
default "1MB" if ESPTOOLPY_FLASHSIZE_1MB default "1MB" if ESPTOOLPY_FLASHSIZE_1MB
default "2MB" if ESPTOOLPY_FLASHSIZE_2MB default "2MB" if ESPTOOLPY_FLASHSIZE_2MB
@ -131,14 +131,14 @@ config ESPTOOLPY_FLASHSIZE
default "8MB" if ESPTOOLPY_FLASHSIZE_8MB default "8MB" if ESPTOOLPY_FLASHSIZE_8MB
default "16MB" if ESPTOOLPY_FLASHSIZE_16MB default "16MB" if ESPTOOLPY_FLASHSIZE_16MB
config ESPTOOLPY_FLASHSIZE_DETECT config ESPTOOLPY_FLASHSIZE_DETECT
bool "Detect flash size when flashing bootloader" bool "Detect flash size when flashing bootloader"
default y default y
help help
If this option is set, 'make flash' targets will automatically detect If this option is set, 'make flash' targets will automatically detect
the flash size and update the bootloader image when flashing. the flash size and update the bootloader image when flashing.
choice ESPTOOLPY_BEFORE choice ESPTOOLPY_BEFORE
prompt "Before flashing" prompt "Before flashing"
default ESPTOOLPY_BEFORE_RESET default ESPTOOLPY_BEFORE_RESET
help help
@ -148,18 +148,18 @@ choice ESPTOOLPY_BEFORE
wired from the serial port to the ESP32. Most USB development wired from the serial port to the ESP32. Most USB development
boards do this internally. boards do this internally.
config ESPTOOLPY_BEFORE_RESET config ESPTOOLPY_BEFORE_RESET
bool "Reset to bootloader" bool "Reset to bootloader"
config ESPTOOLPY_BEFORE_NORESET config ESPTOOLPY_BEFORE_NORESET
bool "No reset" bool "No reset"
endchoice endchoice
config ESPTOOLPY_BEFORE config ESPTOOLPY_BEFORE
string string
default "default_reset" if ESPTOOLPY_BEFORE_RESET default "default_reset" if ESPTOOLPY_BEFORE_RESET
default "no_reset" if ESPTOOLPY_BEFORE_NORESET default "no_reset" if ESPTOOLPY_BEFORE_NORESET
choice ESPTOOLPY_AFTER choice ESPTOOLPY_AFTER
prompt "After flashing" prompt "After flashing"
default ESPTOOLPY_AFTER_RESET default ESPTOOLPY_AFTER_RESET
help help
@ -169,18 +169,18 @@ choice ESPTOOLPY_AFTER
wired from the serial port to the ESP32. Most USB development wired from the serial port to the ESP32. Most USB development
boards do this internally. boards do this internally.
config ESPTOOLPY_AFTER_RESET config ESPTOOLPY_AFTER_RESET
bool "Reset after flashing" bool "Reset after flashing"
config ESPTOOLPY_AFTER_NORESET config ESPTOOLPY_AFTER_NORESET
bool "Stay in bootloader" bool "Stay in bootloader"
endchoice endchoice
config ESPTOOLPY_AFTER config ESPTOOLPY_AFTER
string string
default "hard_reset" if ESPTOOLPY_AFTER_RESET default "hard_reset" if ESPTOOLPY_AFTER_RESET
default "no_reset" if ESPTOOLPY_AFTER_NORESET default "no_reset" if ESPTOOLPY_AFTER_NORESET
choice MONITOR_BAUD choice MONITOR_BAUD
prompt "'make monitor' baud rate" prompt "'make monitor' baud rate"
default MONITOR_BAUD_115200B default MONITOR_BAUD_115200B
help help
@ -189,28 +189,28 @@ choice MONITOR_BAUD
Can override by setting the MONITORBAUD environment variable. Can override by setting the MONITORBAUD environment variable.
config MONITOR_BAUD_9600B config MONITOR_BAUD_9600B
bool "9600 bps" bool "9600 bps"
config MONITOR_BAUD_57600B config MONITOR_BAUD_57600B
bool "57600 bps" bool "57600 bps"
config MONITOR_BAUD_115200B config MONITOR_BAUD_115200B
bool "115200 bps" bool "115200 bps"
config MONITOR_BAUD_230400B config MONITOR_BAUD_230400B
bool "230400 bps" bool "230400 bps"
config MONITOR_BAUD_921600B config MONITOR_BAUD_921600B
bool "921600 bps" bool "921600 bps"
config MONITOR_BAUD_2MB config MONITOR_BAUD_2MB
bool "2 Mbps" bool "2 Mbps"
config MONITOR_BAUD_OTHER config MONITOR_BAUD_OTHER
bool "Custom baud rate" bool "Custom baud rate"
endchoice endchoice
config MONITOR_BAUD_OTHER_VAL config MONITOR_BAUD_OTHER_VAL
int "Custom baud rate value" if MONITOR_BAUD_OTHER int "Custom baud rate value" if MONITOR_BAUD_OTHER
default 115200 default 115200
config MONITOR_BAUD config MONITOR_BAUD
int int
default 9600 if MONITOR_BAUD_9600B default 9600 if MONITOR_BAUD_9600B
default 57600 if MONITOR_BAUD_57600B default 57600 if MONITOR_BAUD_57600B

View File

@ -1,6 +1,6 @@
menu "FAT Filesystem support" menu "FAT Filesystem support"
choice FATFS_CHOOSE_CODEPAGE choice FATFS_CHOOSE_CODEPAGE
prompt "OEM Code Page" prompt "OEM Code Page"
default FATFS_CODEPAGE_437 default FATFS_CODEPAGE_437
help help
@ -10,54 +10,54 @@ choice FATFS_CHOOSE_CODEPAGE
f_setcp function. Note that choosing this option will increase f_setcp function. Note that choosing this option will increase
application size by ~480kB. application size by ~480kB.
config FATFS_CODEPAGE_DYNAMIC config FATFS_CODEPAGE_DYNAMIC
bool "Dynamic (all code pages supported)" bool "Dynamic (all code pages supported)"
config FATFS_CODEPAGE_437 config FATFS_CODEPAGE_437
bool "US (CP437)" bool "US (CP437)"
config FATFS_CODEPAGE_720 config FATFS_CODEPAGE_720
bool "Arabic (CP720)" bool "Arabic (CP720)"
config FATFS_CODEPAGE_737 config FATFS_CODEPAGE_737
bool "Greek (CP737)" bool "Greek (CP737)"
config FATFS_CODEPAGE_771 config FATFS_CODEPAGE_771
bool "KBL (CP771)" bool "KBL (CP771)"
config FATFS_CODEPAGE_775 config FATFS_CODEPAGE_775
bool "Baltic (CP775)" bool "Baltic (CP775)"
config FATFS_CODEPAGE_850 config FATFS_CODEPAGE_850
bool "Latin 1 (CP850)" bool "Latin 1 (CP850)"
config FATFS_CODEPAGE_852 config FATFS_CODEPAGE_852
bool "Latin 2 (CP852)" bool "Latin 2 (CP852)"
config FATFS_CODEPAGE_855 config FATFS_CODEPAGE_855
bool "Cyrillic (CP855)" bool "Cyrillic (CP855)"
config FATFS_CODEPAGE_857 config FATFS_CODEPAGE_857
bool "Turkish (CP857)" bool "Turkish (CP857)"
config FATFS_CODEPAGE_860 config FATFS_CODEPAGE_860
bool "Portugese (CP860)" bool "Portugese (CP860)"
config FATFS_CODEPAGE_861 config FATFS_CODEPAGE_861
bool "Icelandic (CP861)" bool "Icelandic (CP861)"
config FATFS_CODEPAGE_862 config FATFS_CODEPAGE_862
bool "Hebrew (CP862)" bool "Hebrew (CP862)"
config FATFS_CODEPAGE_863 config FATFS_CODEPAGE_863
bool "Canadian French (CP863)" bool "Canadian French (CP863)"
config FATFS_CODEPAGE_864 config FATFS_CODEPAGE_864
bool "Arabic (CP864)" bool "Arabic (CP864)"
config FATFS_CODEPAGE_865 config FATFS_CODEPAGE_865
bool "Nordic (CP865)" bool "Nordic (CP865)"
config FATFS_CODEPAGE_866 config FATFS_CODEPAGE_866
bool "Russian (CP866)" bool "Russian (CP866)"
config FATFS_CODEPAGE_869 config FATFS_CODEPAGE_869
bool "Greek 2 (CP869)" bool "Greek 2 (CP869)"
config FATFS_CODEPAGE_932 config FATFS_CODEPAGE_932
bool "Japanese (DBCS) (CP932)" bool "Japanese (DBCS) (CP932)"
config FATFS_CODEPAGE_936 config FATFS_CODEPAGE_936
bool "Simplified Chinese (DBCS) (CP936)" bool "Simplified Chinese (DBCS) (CP936)"
config FATFS_CODEPAGE_949 config FATFS_CODEPAGE_949
bool "Korean (DBCS) (CP949)" bool "Korean (DBCS) (CP949)"
config FATFS_CODEPAGE_950 config FATFS_CODEPAGE_950
bool "Traditional Chinese (DBCS) (CP950)" bool "Traditional Chinese (DBCS) (CP950)"
endchoice endchoice
config FATFS_CODEPAGE config FATFS_CODEPAGE
int int
default 0 if FATFS_CODEPAGE_DYNAMIC default 0 if FATFS_CODEPAGE_DYNAMIC
default 437 if FATFS_CODEPAGE_437 default 437 if FATFS_CODEPAGE_437
@ -83,7 +83,7 @@ config FATFS_CODEPAGE
default 950 if FATFS_CODEPAGE_950 default 950 if FATFS_CODEPAGE_950
default 437 default 437
choice FATFS_LONG_FILENAMES choice FATFS_LONG_FILENAMES
prompt "Long filename support" prompt "Long filename support"
default FATFS_LFN_NONE default FATFS_LFN_NONE
help help
@ -91,15 +91,15 @@ choice FATFS_LONG_FILENAMES
memory usage. FATFS can be configured to store the buffer for memory usage. FATFS can be configured to store the buffer for
long filename data in stack or heap. long filename data in stack or heap.
config FATFS_LFN_NONE config FATFS_LFN_NONE
bool "No long filenames" bool "No long filenames"
config FATFS_LFN_HEAP config FATFS_LFN_HEAP
bool "Long filename buffer in heap" bool "Long filename buffer in heap"
config FATFS_LFN_STACK config FATFS_LFN_STACK
bool "Long filename buffer on stack" bool "Long filename buffer on stack"
endchoice endchoice
config FATFS_MAX_LFN config FATFS_MAX_LFN
int "Max long filename length" int "Max long filename length"
depends on !FATFS_LFN_NONE depends on !FATFS_LFN_NONE
default 255 default 255
@ -107,7 +107,7 @@ config FATFS_MAX_LFN
help help
Maximum long filename length. Can be reduced to save RAM. Maximum long filename length. Can be reduced to save RAM.
choice FATFS_API_ENCODING choice FATFS_API_ENCODING
prompt "API character encoding" prompt "API character encoding"
depends on !FATFS_LFN_NONE depends on !FATFS_LFN_NONE
default FATFS_API_ENCODING_ANSI_OEM default FATFS_API_ENCODING_ANSI_OEM
@ -116,15 +116,15 @@ choice FATFS_API_ENCODING
FATFS APIs. The encoding of arguments will usually depend on text FATFS APIs. The encoding of arguments will usually depend on text
editor settings. editor settings.
config FATFS_API_ENCODING_ANSI_OEM config FATFS_API_ENCODING_ANSI_OEM
bool "API uses ANSI/OEM encoding" bool "API uses ANSI/OEM encoding"
config FATFS_API_ENCODING_UTF_16 config FATFS_API_ENCODING_UTF_16
bool "API uses UTF-16 encoding" bool "API uses UTF-16 encoding"
config FATFS_API_ENCODING_UTF_8 config FATFS_API_ENCODING_UTF_8
bool "API uses UTF-8 encoding" bool "API uses UTF-8 encoding"
endchoice endchoice
config FATFS_FS_LOCK config FATFS_FS_LOCK
int "Number of simultaneously open files protected by lock function" int "Number of simultaneously open files protected by lock function"
default 0 default 0
range 0 65535 range 0 65535
@ -141,7 +141,7 @@ config FATFS_FS_LOCK
Note that the file lock control is independent of re-entrancy. Note that the file lock control is independent of re-entrancy.
config FATFS_TIMEOUT_MS config FATFS_TIMEOUT_MS
int "Timeout for acquiring a file lock, ms" int "Timeout for acquiring a file lock, ms"
default 10000 default 10000
help help
@ -152,7 +152,7 @@ config FATFS_TIMEOUT_MS
and time out after amount of time set by this option. and time out after amount of time set by this option.
config FATFS_PER_FILE_CACHE config FATFS_PER_FILE_CACHE
bool "Use separate cache for each file" bool "Use separate cache for each file"
default y default y
help help
@ -169,7 +169,7 @@ config FATFS_PER_FILE_CACHE
of read and write operations which FATFS needs to make. of read and write operations which FATFS needs to make.
config FATFS_ALLOC_PREFER_EXTRAM config FATFS_ALLOC_PREFER_EXTRAM
bool "Perfer external RAM when allocating FATFS buffers" bool "Perfer external RAM when allocating FATFS buffers"
default y default y
depends on SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC depends on SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC

View File

@ -1,6 +1,6 @@
menu "Modbus configuration" menu "Modbus configuration"
config MB_QUEUE_LENGTH config MB_QUEUE_LENGTH
int "Modbus serial task queue length" int "Modbus serial task queue length"
range 0 200 range 0 200
default 20 default 20
@ -8,7 +8,7 @@ config MB_QUEUE_LENGTH
Modbus serial driver queue length. It is used by event queue task. Modbus serial driver queue length. It is used by event queue task.
See the serial driver API for more information. See the serial driver API for more information.
config MB_SERIAL_TASK_STACK_SIZE config MB_SERIAL_TASK_STACK_SIZE
int "Modbus serial task stack size" int "Modbus serial task stack size"
range 768 8192 range 768 8192
default 2048 default 2048
@ -16,7 +16,7 @@ config MB_SERIAL_TASK_STACK_SIZE
Modbus serial task stack size for event queue task. Modbus serial task stack size for event queue task.
It may be adjusted when debugging is enabled (for example). It may be adjusted when debugging is enabled (for example).
config MB_SERIAL_BUF_SIZE config MB_SERIAL_BUF_SIZE
int "Modbus serial task RX/TX buffer size" int "Modbus serial task RX/TX buffer size"
range 0 2048 range 0 2048
default 256 default 256
@ -25,7 +25,7 @@ config MB_SERIAL_BUF_SIZE
This buffer is used for Modbus frame transfer. The Modbus protocol maximum This buffer is used for Modbus frame transfer. The Modbus protocol maximum
frame size is 256 bytes. Bigger size can be used for non standard implementations. frame size is 256 bytes. Bigger size can be used for non standard implementations.
config MB_SERIAL_TASK_PRIO config MB_SERIAL_TASK_PRIO
int "Modbus serial task priority" int "Modbus serial task priority"
range 3 10 range 3 10
default 10 default 10
@ -33,14 +33,14 @@ config MB_SERIAL_TASK_PRIO
Modbus UART driver event task priority. Modbus UART driver event task priority.
The priority of Modbus controller task is equal to (CONFIG_MB_SERIAL_TASK_PRIO - 1). The priority of Modbus controller task is equal to (CONFIG_MB_SERIAL_TASK_PRIO - 1).
config MB_CONTROLLER_SLAVE_ID_SUPPORT config MB_CONTROLLER_SLAVE_ID_SUPPORT
bool "Modbus controller slave ID support" bool "Modbus controller slave ID support"
default n default n
help help
Modbus slave ID support enable. Modbus slave ID support enable.
When enabled the Modbus <Report Slave ID> command is supported by stack. When enabled the Modbus <Report Slave ID> command is supported by stack.
config MB_CONTROLLER_SLAVE_ID config MB_CONTROLLER_SLAVE_ID
hex "Modbus controller slave ID" hex "Modbus controller slave ID"
range 0 4294967295 range 0 4294967295
default 0x00112233 default 0x00112233
@ -51,7 +51,7 @@ config MB_CONTROLLER_SLAVE_ID
Most significant byte of ID is used as short device ID and Most significant byte of ID is used as short device ID and
other three bytes used as long ID. other three bytes used as long ID.
config MB_CONTROLLER_NOTIFY_TIMEOUT config MB_CONTROLLER_NOTIFY_TIMEOUT
int "Modbus controller notification timeout (ms)" int "Modbus controller notification timeout (ms)"
range 0 200 range 0 200
default 20 default 20
@ -59,7 +59,7 @@ config MB_CONTROLLER_NOTIFY_TIMEOUT
Modbus controller notification timeout in milliseconds. Modbus controller notification timeout in milliseconds.
This timeout is used to send notification about accessed parameters. This timeout is used to send notification about accessed parameters.
config MB_CONTROLLER_NOTIFY_QUEUE_SIZE config MB_CONTROLLER_NOTIFY_QUEUE_SIZE
int "Modbus controller notification queue size" int "Modbus controller notification queue size"
range 0 200 range 0 200
default 20 default 20
@ -67,7 +67,7 @@ config MB_CONTROLLER_NOTIFY_QUEUE_SIZE
Modbus controller notification queue size. Modbus controller notification queue size.
The notification queue is used to get information about accessed parameters. The notification queue is used to get information about accessed parameters.
config MB_CONTROLLER_STACK_SIZE config MB_CONTROLLER_STACK_SIZE
int "Modbus controller stack size" int "Modbus controller stack size"
range 0 8192 range 0 8192
default 4096 default 4096
@ -75,7 +75,7 @@ config MB_CONTROLLER_STACK_SIZE
Modbus controller task stack size. The Stack size may be adjusted when Modbus controller task stack size. The Stack size may be adjusted when
debug mode is used which requires more stack size (for example). debug mode is used which requires more stack size (for example).
config MB_EVENT_QUEUE_TIMEOUT config MB_EVENT_QUEUE_TIMEOUT
int "Modbus stack event queue timeout (ms)" int "Modbus stack event queue timeout (ms)"
range 0 500 range 0 500
default 20 default 20
@ -83,14 +83,14 @@ config MB_EVENT_QUEUE_TIMEOUT
Modbus stack event queue timeout in milliseconds. This may help to optimize Modbus stack event queue timeout in milliseconds. This may help to optimize
Modbus stack event processing time. Modbus stack event processing time.
config MB_TIMER_PORT_ENABLED config MB_TIMER_PORT_ENABLED
bool "Modbus stack use timer for 3.5T symbol time measurement" bool "Modbus stack use timer for 3.5T symbol time measurement"
default y default y
help help
If this option is set the Modbus stack uses timer for T3.5 time measurement. If this option is set the Modbus stack uses timer for T3.5 time measurement.
Else the internal UART TOUT timeout is used for 3.5T symbol time measurement. Else the internal UART TOUT timeout is used for 3.5T symbol time measurement.
config MB_TIMER_GROUP config MB_TIMER_GROUP
int "Modbus Timer group number" int "Modbus Timer group number"
range 0 1 range 0 1
depends on MB_TIMER_PORT_ENABLED depends on MB_TIMER_PORT_ENABLED
@ -98,7 +98,7 @@ config MB_TIMER_GROUP
help help
Modbus Timer group number that is used for timeout measurement. Modbus Timer group number that is used for timeout measurement.
config MB_TIMER_INDEX config MB_TIMER_INDEX
int "Modbus Timer index in the group" int "Modbus Timer index in the group"
range 0 1 range 0 1
depends on MB_TIMER_PORT_ENABLED depends on MB_TIMER_PORT_ENABLED

View File

@ -1,7 +1,7 @@
menu "FreeRTOS" menu "FreeRTOS"
# This is actually also handled in the ESP32 startup code, not only in FreeRTOS. # This is actually also handled in the ESP32 startup code, not only in FreeRTOS.
config FREERTOS_UNICORE config FREERTOS_UNICORE
bool "Run FreeRTOS only on first core" bool "Run FreeRTOS only on first core"
default n default n
help help
@ -10,14 +10,14 @@ config FREERTOS_UNICORE
This is needed when e.g. another process needs complete control This is needed when e.g. another process needs complete control
over the second core. over the second core.
# This invisible config value sets the value of tskNO_AFFINITY in task.h. # This invisible config value sets the value of tskNO_AFFINITY in task.h.
# Intended to be used as a constant from other Kconfig files. # Intended to be used as a constant from other Kconfig files.
# Value is (32-bit) INT_MAX. # Value is (32-bit) INT_MAX.
config FREERTOS_NO_AFFINITY config FREERTOS_NO_AFFINITY
hex hex
default 0x7FFFFFFF default 0x7FFFFFFF
choice FREERTOS_CORETIMER choice FREERTOS_CORETIMER
prompt "Xtensa timer to use as the FreeRTOS tick source" prompt "Xtensa timer to use as the FreeRTOS tick source"
default CONFIG_FREERTOS_CORETIMER_0 default CONFIG_FREERTOS_CORETIMER_0
help help
@ -26,26 +26,26 @@ choice FREERTOS_CORETIMER
pre-emptive multitasking with. There are multiple timers available pre-emptive multitasking with. There are multiple timers available
to do this, with different interrupt priorities. Check to do this, with different interrupt priorities. Check
config FREERTOS_CORETIMER_0 config FREERTOS_CORETIMER_0
bool "Timer 0 (int 6, level 1)" bool "Timer 0 (int 6, level 1)"
help help
Select this to use timer 0 Select this to use timer 0
config FREERTOS_CORETIMER_1 config FREERTOS_CORETIMER_1
bool "Timer 1 (int 15, level 3)" bool "Timer 1 (int 15, level 3)"
help help
Select this to use timer 1 Select this to use timer 1
endchoice endchoice
config FREERTOS_HZ config FREERTOS_HZ
int "Tick rate (Hz)" int "Tick rate (Hz)"
range 1 1000 range 1 1000
default 100 default 100
help help
Select the tick rate at which FreeRTOS does pre-emptive context switching. Select the tick rate at which FreeRTOS does pre-emptive context switching.
config FREERTOS_ASSERT_ON_UNTESTED_FUNCTION config FREERTOS_ASSERT_ON_UNTESTED_FUNCTION
bool "Halt when an SMP-untested function is called" bool "Halt when an SMP-untested function is called"
default y default y
help help
@ -53,19 +53,19 @@ config FREERTOS_ASSERT_ON_UNTESTED_FUNCTION
the SMP implementation of FreeRTOS. When this option is enabled, these fuctions the SMP implementation of FreeRTOS. When this option is enabled, these fuctions
will throw an assert(). will throw an assert().
choice FREERTOS_CHECK_STACKOVERFLOW choice FREERTOS_CHECK_STACKOVERFLOW
prompt "Check for stack overflow" prompt "Check for stack overflow"
default FREERTOS_CHECK_STACKOVERFLOW_CANARY default FREERTOS_CHECK_STACKOVERFLOW_CANARY
help help
FreeRTOS can check for stack overflows in threads and trigger an user function FreeRTOS can check for stack overflows in threads and trigger an user function
called vApplicationStackOverflowHook when this happens. called vApplicationStackOverflowHook when this happens.
config FREERTOS_CHECK_STACKOVERFLOW_NONE config FREERTOS_CHECK_STACKOVERFLOW_NONE
bool "No checking" bool "No checking"
help help
Do not check for stack overflows (configCHECK_FOR_STACK_OVERFLOW=0) Do not check for stack overflows (configCHECK_FOR_STACK_OVERFLOW=0)
config FREERTOS_CHECK_STACKOVERFLOW_PTRVAL config FREERTOS_CHECK_STACKOVERFLOW_PTRVAL
bool "Check by stack pointer value" bool "Check by stack pointer value"
help help
Check for stack overflows on each context switch by checking if Check for stack overflows on each context switch by checking if
@ -73,16 +73,16 @@ config FREERTOS_CHECK_STACKOVERFLOW_PTRVAL
stack overflows that happened between context switches stack overflows that happened between context switches
(configCHECK_FOR_STACK_OVERFLOW=1) (configCHECK_FOR_STACK_OVERFLOW=1)
config FREERTOS_CHECK_STACKOVERFLOW_CANARY config FREERTOS_CHECK_STACKOVERFLOW_CANARY
bool "Check using canary bytes" bool "Check using canary bytes"
help help
Places some magic bytes at the end of the stack area and on each Places some magic bytes at the end of the stack area and on each
context switch, check if these bytes are still intact. More thorough context switch, check if these bytes are still intact. More thorough
than just checking the pointer, but also slightly slower. than just checking the pointer, but also slightly slower.
(configCHECK_FOR_STACK_OVERFLOW=2) (configCHECK_FOR_STACK_OVERFLOW=2)
endchoice endchoice
config FREERTOS_WATCHPOINT_END_OF_STACK config FREERTOS_WATCHPOINT_END_OF_STACK
bool "Set a debug watchpoint as a stack overflow check" bool "Set a debug watchpoint as a stack overflow check"
default n default n
help help
@ -95,12 +95,13 @@ config FREERTOS_WATCHPOINT_END_OF_STACK
effectively only have one watchpoint; the 2nd one is overwritten as soon as a task switch happens. effectively only have one watchpoint; the 2nd one is overwritten as soon as a task switch happens.
This check only triggers if the stack overflow writes within 4 bytes of the end of the stack, rather than This check only triggers if the stack overflow writes within 4 bytes of the end of the stack, rather than
overshooting further, so it is worth combining this approach with one of the other stack overflow check methods. overshooting further, so it is worth combining this approach with one of the other stack overflow check
methods.
When this watchpoint is hit, gdb will stop with a SIGTRAP message. When no JTAG OCD is attached, esp-idf When this watchpoint is hit, gdb will stop with a SIGTRAP message. When no JTAG OCD is attached, esp-idf
will panic on an unhandled debug exception. will panic on an unhandled debug exception.
config FREERTOS_INTERRUPT_BACKTRACE config FREERTOS_INTERRUPT_BACKTRACE
bool "Enable backtrace from interrupt to task context" bool "Enable backtrace from interrupt to task context"
default y default y
help help
@ -112,7 +113,7 @@ config FREERTOS_INTERRUPT_BACKTRACE
lower level interrupt. lower level interrupt.
This option adds 4 instructions to the interrupt dispatching code. This option adds 4 instructions to the interrupt dispatching code.
config FREERTOS_THREAD_LOCAL_STORAGE_POINTERS config FREERTOS_THREAD_LOCAL_STORAGE_POINTERS
int "Number of thread local storage pointers" int "Number of thread local storage pointers"
range 1 256 range 1 256
default 1 default 1
@ -123,45 +124,45 @@ config FREERTOS_THREAD_LOCAL_STORAGE_POINTERS
This value must be at least 1. Index 0 is reserved for use by the pthreads API This value must be at least 1. Index 0 is reserved for use by the pthreads API
thread-local-storage. Other indexes can be used for any desired purpose. thread-local-storage. Other indexes can be used for any desired purpose.
choice FREERTOS_ASSERT choice FREERTOS_ASSERT
prompt "FreeRTOS assertions" prompt "FreeRTOS assertions"
default FREERTOS_ASSERT_FAIL_ABORT default FREERTOS_ASSERT_FAIL_ABORT
help help
Failed FreeRTOS configASSERT() assertions can be configured to Failed FreeRTOS configASSERT() assertions can be configured to
behave in different ways. behave in different ways.
config FREERTOS_ASSERT_FAIL_ABORT config FREERTOS_ASSERT_FAIL_ABORT
bool "abort() on failed assertions" bool "abort() on failed assertions"
help help
If a FreeRTOS configASSERT() fails, FreeRTOS will abort() and If a FreeRTOS configASSERT() fails, FreeRTOS will abort() and
halt execution. The panic handler can be configured to handle halt execution. The panic handler can be configured to handle
the outcome of an abort() in different ways. the outcome of an abort() in different ways.
config FREERTOS_ASSERT_FAIL_PRINT_CONTINUE config FREERTOS_ASSERT_FAIL_PRINT_CONTINUE
bool "Print and continue failed assertions" bool "Print and continue failed assertions"
help help
If a FreeRTOS assertion fails, print it out and continue. If a FreeRTOS assertion fails, print it out and continue.
config FREERTOS_ASSERT_DISABLE config FREERTOS_ASSERT_DISABLE
bool "Disable FreeRTOS assertions" bool "Disable FreeRTOS assertions"
help help
FreeRTOS configASSERT() will not be compiled into the binary. FreeRTOS configASSERT() will not be compiled into the binary.
endchoice endchoice
config FREERTOS_IDLE_TASK_STACKSIZE config FREERTOS_IDLE_TASK_STACKSIZE
int "Idle Task stack size" int "Idle Task stack size"
range 768 32768 range 768 32768
default 1536 default 1536
help help
The idle task has its own stack, sized in bytes. The default size is enough for most uses. Size can be reduced The idle task has its own stack, sized in bytes. The default size is enough for most uses. Size can be
to 768 bytes if no (or simple) FreeRTOS idle hooks are used and pthread local storage or FreeRTOS local storage reduced to 768 bytes if no (or simple) FreeRTOS idle hooks are used and pthread local storage or FreeRTOS
cleanup callbacks are not used. local storage cleanup callbacks are not used.
The stack size may need to be increased above the default if the app installs idle or thread local storage The stack size may need to be increased above the default if the app installs idle or thread local storage
cleanup hooks that use a lot of stack memory. cleanup hooks that use a lot of stack memory.
config FREERTOS_ISR_STACKSIZE config FREERTOS_ISR_STACKSIZE
int "ISR stack size" int "ISR stack size"
range 1536 32768 range 1536 32768
default 1536 default 1536
@ -169,7 +170,7 @@ config FREERTOS_ISR_STACKSIZE
The interrupt handlers have their own stack. The size of the stack can be defined here. The interrupt handlers have their own stack. The size of the stack can be defined here.
Each processor has its own stack, so the total size occupied will be twice this. Each processor has its own stack, so the total size occupied will be twice this.
config FREERTOS_LEGACY_HOOKS config FREERTOS_LEGACY_HOOKS
bool "Use FreeRTOS legacy hooks" bool "Use FreeRTOS legacy hooks"
default n default n
help help
@ -179,7 +180,7 @@ config FREERTOS_LEGACY_HOOKS
hooks can also still be enabled. Please enable this only if you have code that for some hooks can also still be enabled. Please enable this only if you have code that for some
reason can't be migrated to the esp_register_freertos_xxx_hook system. reason can't be migrated to the esp_register_freertos_xxx_hook system.
config FREERTOS_MAX_TASK_NAME_LEN config FREERTOS_MAX_TASK_NAME_LEN
int "Maximum task name length" int "Maximum task name length"
range 1 256 range 1 256
default 16 default 16
@ -191,7 +192,7 @@ config FREERTOS_MAX_TASK_NAME_LEN
For most uses, the default of 16 is OK. For most uses, the default of 16 is OK.
config SUPPORT_STATIC_ALLOCATION config SUPPORT_STATIC_ALLOCATION
bool "Enable FreeRTOS static allocation API" bool "Enable FreeRTOS static allocation API"
default n default n
help help
@ -212,14 +213,14 @@ config SUPPORT_STATIC_ALLOCATION
the application, and the preference of the application writer. Both methods have pros the application, and the preference of the application writer. Both methods have pros
and cons, and both methods can be used within the same RTOS application. and cons, and both methods can be used within the same RTOS application.
Creating RTOS objects using statically allocated RAM has the benefit of providing the Creating RTOS objects using statically allocated RAM has the benefit of providing the application writer
application writer with more control: RTOS objects can be placed at specific memory locations. with more control: RTOS objects can be placed at specific memory locations. The maximum RAM footprint can
The maximum RAM footprint can be determined at link time, rather than run time. be determined at link time, rather than run time. The application writer does not need to concern
The application writer does not need to concern themselves with graceful handling of memory allocation failures. themselves with graceful handling of memory allocation failures. It allows the RTOS to be used in
It allows the RTOS to be used in applications that simply don't allow any dynamic memory allocation applications that simply don't allow any dynamic memory allocation (although FreeRTOS includes allocation
(although FreeRTOS includes allocation schemes that can overcome most objections). schemes that can overcome most objections).
config ENABLE_STATIC_TASK_CLEAN_UP_HOOK config ENABLE_STATIC_TASK_CLEAN_UP_HOOK
bool "Enable static task clean up hook" bool "Enable static task clean up hook"
depends on SUPPORT_STATIC_ALLOCATION depends on SUPPORT_STATIC_ALLOCATION
default n default n
@ -232,7 +233,7 @@ config ENABLE_STATIC_TASK_CLEAN_UP_HOOK
// place clean up code here // place clean up code here
} }
config TIMER_TASK_PRIORITY config TIMER_TASK_PRIORITY
int "FreeRTOS timer task priority" int "FreeRTOS timer task priority"
range 1 25 range 1 25
default 1 default 1
@ -243,7 +244,7 @@ config TIMER_TASK_PRIORITY
Use this constant to define the priority that the timer task will run at. Use this constant to define the priority that the timer task will run at.
config TIMER_TASK_STACK_DEPTH config TIMER_TASK_STACK_DEPTH
int "FreeRTOS timer task stack size" int "FreeRTOS timer task stack size"
range 1536 32768 range 1536 32768
default 2048 default 2048
@ -254,7 +255,7 @@ config TIMER_TASK_STACK_DEPTH
Use this constant to define the size (in bytes) of the stack allocated for the timer task. Use this constant to define the size (in bytes) of the stack allocated for the timer task.
config TIMER_QUEUE_LENGTH config TIMER_QUEUE_LENGTH
int "FreeRTOS timer queue length" int "FreeRTOS timer queue length"
range 5 20 range 5 20
default 10 default 10
@ -266,7 +267,7 @@ config TIMER_QUEUE_LENGTH
For most uses the default value of 10 is OK. For most uses the default value of 10 is OK.
config FREERTOS_QUEUE_REGISTRY_SIZE config FREERTOS_QUEUE_REGISTRY_SIZE
int "FreeRTOS queue registry size" int "FreeRTOS queue registry size"
range 0 20 range 0 20
default 0 default 0
@ -276,7 +277,7 @@ config FREERTOS_QUEUE_REGISTRY_SIZE
within a debugging GUI. A value of 0 will disable queue registry functionality, and a value larger than 0 within a debugging GUI. A value of 0 will disable queue registry functionality, and a value larger than 0
will specify the number of queues/semaphores/mutexes that the registry can hold. will specify the number of queues/semaphores/mutexes that the registry can hold.
config FREERTOS_USE_TRACE_FACILITY config FREERTOS_USE_TRACE_FACILITY
bool "Enable FreeRTOS trace facility" bool "Enable FreeRTOS trace facility"
default n default n
help help
@ -284,7 +285,7 @@ config FREERTOS_USE_TRACE_FACILITY
This will allow the usage of trace facility functions such as This will allow the usage of trace facility functions such as
uxTaskGetSystemState(). uxTaskGetSystemState().
config FREERTOS_USE_STATS_FORMATTING_FUNCTIONS config FREERTOS_USE_STATS_FORMATTING_FUNCTIONS
bool "Enable FreeRTOS stats formatting functions" bool "Enable FreeRTOS stats formatting functions"
depends on FREERTOS_USE_TRACE_FACILITY depends on FREERTOS_USE_TRACE_FACILITY
default n default n
@ -293,7 +294,7 @@ config FREERTOS_USE_STATS_FORMATTING_FUNCTIONS
FreeRTOS. This will allow the usage of stats formatting functions such FreeRTOS. This will allow the usage of stats formatting functions such
as vTaskList(). as vTaskList().
config FREERTOS_VTASKLIST_INCLUDE_COREID config FREERTOS_VTASKLIST_INCLUDE_COREID
bool "Enable display of xCoreID in vTaskList" bool "Enable display of xCoreID in vTaskList"
depends on FREERTOS_USE_STATS_FORMATTING_FUNCTIONS depends on FREERTOS_USE_STATS_FORMATTING_FUNCTIONS
default n default n
@ -301,7 +302,7 @@ config FREERTOS_VTASKLIST_INCLUDE_COREID
If enabled, this will include an extra column when vTaskList is called If enabled, this will include an extra column when vTaskList is called
to display the CoreID the task is pinned to (0,1) or -1 if not pinned. to display the CoreID the task is pinned to (0,1) or -1 if not pinned.
config FREERTOS_GENERATE_RUN_TIME_STATS config FREERTOS_GENERATE_RUN_TIME_STATS
bool "Enable FreeRTOS to collect run time stats" bool "Enable FreeRTOS to collect run time stats"
default n default n
select FREERTOS_USE_TRACE_FACILITY select FREERTOS_USE_TRACE_FACILITY
@ -319,7 +320,7 @@ config FREERTOS_GENERATE_RUN_TIME_STATS
CPUs (task run time / no of CPUs) / (total run time / 100 ) CPUs (task run time / no of CPUs) / (total run time / 100 )
choice FREERTOS_RUN_TIME_STATS_CLK choice FREERTOS_RUN_TIME_STATS_CLK
prompt "Choose the clock source for run time stats" prompt "Choose the clock source for run time stats"
depends on FREERTOS_GENERATE_RUN_TIME_STATS depends on FREERTOS_GENERATE_RUN_TIME_STATS
default FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER default FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER
@ -330,7 +331,7 @@ choice FREERTOS_RUN_TIME_STATS_CLK
but will overflow much quicker. Note that run time stats are only valid but will overflow much quicker. Note that run time stats are only valid
until the clock source overflows. until the clock source overflows.
config FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER config FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER
bool "Use ESP TIMER for run time stats" bool "Use ESP TIMER for run time stats"
help help
ESP Timer will be used as the clock source for FreeRTOS run time stats. ESP Timer will be used as the clock source for FreeRTOS run time stats.
@ -338,7 +339,7 @@ config FREERTOS_RUN_TIME_STATS_USING_ESP_TIMER
Frequency Scaling. Therefore the ESP Timer will overflow in Frequency Scaling. Therefore the ESP Timer will overflow in
approximately 4290 seconds. approximately 4290 seconds.
config FREERTOS_RUN_TIME_STATS_USING_CPU_CLK config FREERTOS_RUN_TIME_STATS_USING_CPU_CLK
bool "Use CPU Clock for run time stats" bool "Use CPU Clock for run time stats"
help help
CPU Clock will be used as the clock source for the generation of run CPU Clock will be used as the clock source for the generation of run
@ -351,9 +352,9 @@ config FREERTOS_RUN_TIME_STATS_USING_CPU_CLK
clock consistently runs at the maximum frequency of 240MHz, it will clock consistently runs at the maximum frequency of 240MHz, it will
overflow in approximately 17 seconds. overflow in approximately 17 seconds.
endchoice endchoice
config FREERTOS_USE_TICKLESS_IDLE config FREERTOS_USE_TICKLESS_IDLE
bool "Tickless idle support" bool "Tickless idle support"
depends on PM_ENABLE depends on PM_ENABLE
default n default n
@ -368,7 +369,7 @@ config FREERTOS_USE_TICKLESS_IDLE
If disabled, automatic light sleep support will be disabled. If disabled, automatic light sleep support will be disabled.
config FREERTOS_IDLE_TIME_BEFORE_SLEEP config FREERTOS_IDLE_TIME_BEFORE_SLEEP
int "Minimum number of ticks to enter sleep mode for" int "Minimum number of ticks to enter sleep mode for"
depends on FREERTOS_USE_TICKLESS_IDLE depends on FREERTOS_USE_TICKLESS_IDLE
default 3 default 3
@ -378,16 +379,16 @@ config FREERTOS_IDLE_TIME_BEFORE_SLEEP
FreeRTOS will enter light sleep mode if no tasks need to run for this number FreeRTOS will enter light sleep mode if no tasks need to run for this number
of ticks. of ticks.
menuconfig FREERTOS_DEBUG_INTERNALS menuconfig FREERTOS_DEBUG_INTERNALS
bool "Debug FreeRTOS internals" bool "Debug FreeRTOS internals"
default n default n
help help
Enable this option to show the menu with internal FreeRTOS debugging features. Enable this option to show the menu with internal FreeRTOS debugging features.
This option does not change any code by itself, it just shows/hides some options. This option does not change any code by itself, it just shows/hides some options.
if FREERTOS_DEBUG_INTERNALS if FREERTOS_DEBUG_INTERNALS
config FREERTOS_PORTMUX_DEBUG config FREERTOS_PORTMUX_DEBUG
bool "Debug portMUX portENTER_CRITICAL/portEXIT_CRITICAL" bool "Debug portMUX portENTER_CRITICAL/portEXIT_CRITICAL"
depends on FREERTOS_DEBUG_INTERNALS depends on FREERTOS_DEBUG_INTERNALS
default n default n
@ -395,19 +396,19 @@ config FREERTOS_PORTMUX_DEBUG
If enabled, debug information (including integrity checks) will be printed If enabled, debug information (including integrity checks) will be printed
to UART for the port-specific MUX implementation. to UART for the port-specific MUX implementation.
if !FREERTOS_UNICORE if !FREERTOS_UNICORE
config FREERTOS_PORTMUX_DEBUG_RECURSIVE config FREERTOS_PORTMUX_DEBUG_RECURSIVE
bool "Debug portMUX Recursion" bool "Debug portMUX Recursion"
depends on FREERTOS_PORTMUX_DEBUG depends on FREERTOS_PORTMUX_DEBUG
default n default n
help help
If enabled, additional debug information will be printed for recursive If enabled, additional debug information will be printed for recursive
portMUX usage. portMUX usage.
endif #FREERTOS_UNICORE endif #FREERTOS_UNICORE
endif # FREERTOS_DEBUG_INTERNALS endif # FREERTOS_DEBUG_INTERNALS
config FREERTOS_TASK_FUNCTION_WRAPPER config FREERTOS_TASK_FUNCTION_WRAPPER
bool "Enclose all task functions in a wrapper function" bool "Enclose all task functions in a wrapper function"
depends on OPTIMIZATION_LEVEL_DEBUG depends on OPTIMIZATION_LEVEL_DEBUG
default y default y

View File

@ -1,6 +1,6 @@
menu "Heap memory debugging" menu "Heap memory debugging"
choice HEAP_CORRUPTION_DETECTION choice HEAP_CORRUPTION_DETECTION
prompt "Heap corruption detection" prompt "Heap corruption detection"
default HEAP_POISONING_DISABLED default HEAP_POISONING_DISABLED
help help
@ -9,24 +9,24 @@ choice HEAP_CORRUPTION_DETECTION
See the "Heap Memory Debugging" page of the IDF documentation See the "Heap Memory Debugging" page of the IDF documentation
for a description of each level of heap corruption detection. for a description of each level of heap corruption detection.
config HEAP_POISONING_DISABLED config HEAP_POISONING_DISABLED
bool "Basic (no poisoning)" bool "Basic (no poisoning)"
config HEAP_POISONING_LIGHT config HEAP_POISONING_LIGHT
bool "Light impact" bool "Light impact"
config HEAP_POISONING_COMPREHENSIVE config HEAP_POISONING_COMPREHENSIVE
bool "Comprehensive" bool "Comprehensive"
endchoice endchoice
config HEAP_TRACING config HEAP_TRACING
bool "Enable heap tracing" bool "Enable heap tracing"
help help
Enables the heap tracing API defined in esp_heap_trace.h. Enables the heap tracing API defined in esp_heap_trace.h.
This function causes a moderate increase in IRAM code side and a minor increase in heap function This function causes a moderate increase in IRAM code side and a minor increase in heap function
(malloc/free/realloc) CPU overhead, even when the tracing feature is not used. So it's best to keep it disabled (malloc/free/realloc) CPU overhead, even when the tracing feature is not used. So it's best to keep it
unless tracing is being used. disabled unless tracing is being used.
config HEAP_TRACING_STACK_DEPTH config HEAP_TRACING_STACK_DEPTH
int "Heap tracing stack depth" int "Heap tracing stack depth"
range 0 10 range 0 10
default 2 default 2
@ -37,7 +37,7 @@ config HEAP_TRACING_STACK_DEPTH
More stack frames uses more memory in the heap trace buffer (and slows down allocation), but More stack frames uses more memory in the heap trace buffer (and slows down allocation), but
can provide useful information. can provide useful information.
config HEAP_TASK_TRACKING config HEAP_TASK_TRACKING
bool "Enable heap task tracking" bool "Enable heap task tracking"
depends on !HEAP_POISONING_DISABLED depends on !HEAP_POISONING_DISABLED
help help

View File

@ -1,6 +1,6 @@
menu "libsodium" menu "libsodium"
config LIBSODIUM_USE_MBEDTLS_SHA config LIBSODIUM_USE_MBEDTLS_SHA
bool "Use mbedTLS SHA256 & SHA512 implementations" bool "Use mbedTLS SHA256 & SHA512 implementations"
default y default y
depends on !MBEDTLS_HARDWARE_SHA depends on !MBEDTLS_HARDWARE_SHA

View File

@ -1,6 +1,6 @@
menu "Log output" menu "Log output"
choice LOG_DEFAULT_LEVEL choice LOG_DEFAULT_LEVEL
bool "Default log verbosity" bool "Default log verbosity"
default LOG_DEFAULT_LEVEL_INFO default LOG_DEFAULT_LEVEL_INFO
help help
@ -13,21 +13,21 @@ choice LOG_DEFAULT_LEVEL
"Warning" would mean that changing log level to "Debug" "Warning" would mean that changing log level to "Debug"
at runtime will not be possible. at runtime will not be possible.
config LOG_DEFAULT_LEVEL_NONE config LOG_DEFAULT_LEVEL_NONE
bool "No output" bool "No output"
config LOG_DEFAULT_LEVEL_ERROR config LOG_DEFAULT_LEVEL_ERROR
bool "Error" bool "Error"
config LOG_DEFAULT_LEVEL_WARN config LOG_DEFAULT_LEVEL_WARN
bool "Warning" bool "Warning"
config LOG_DEFAULT_LEVEL_INFO config LOG_DEFAULT_LEVEL_INFO
bool "Info" bool "Info"
config LOG_DEFAULT_LEVEL_DEBUG config LOG_DEFAULT_LEVEL_DEBUG
bool "Debug" bool "Debug"
config LOG_DEFAULT_LEVEL_VERBOSE config LOG_DEFAULT_LEVEL_VERBOSE
bool "Verbose" bool "Verbose"
endchoice endchoice
config LOG_DEFAULT_LEVEL config LOG_DEFAULT_LEVEL
int int
default 0 if LOG_DEFAULT_LEVEL_NONE default 0 if LOG_DEFAULT_LEVEL_NONE
default 1 if LOG_DEFAULT_LEVEL_ERROR default 1 if LOG_DEFAULT_LEVEL_ERROR
@ -36,7 +36,7 @@ config LOG_DEFAULT_LEVEL
default 4 if LOG_DEFAULT_LEVEL_DEBUG default 4 if LOG_DEFAULT_LEVEL_DEBUG
default 5 if LOG_DEFAULT_LEVEL_VERBOSE default 5 if LOG_DEFAULT_LEVEL_VERBOSE
config LOG_COLORS config LOG_COLORS
bool "Use ANSI terminal colors in log output" bool "Use ANSI terminal colors in log output"
default "y" default "y"
help help

View File

@ -1,6 +1,6 @@
menu "LWIP" menu "LWIP"
config L2_TO_L3_COPY config L2_TO_L3_COPY
bool "Enable copy between Layer2 and Layer3 packets" bool "Enable copy between Layer2 and Layer3 packets"
default n default n
help help
@ -16,7 +16,7 @@ config L2_TO_L3_COPY
Please make sure you fully understand the impact of this feature before Please make sure you fully understand the impact of this feature before
enabling it. enabling it.
config LWIP_IRAM_OPTIMIZATION config LWIP_IRAM_OPTIMIZATION
bool "Enable LWIP IRAM optimization" bool "Enable LWIP IRAM optimization"
default n default n
help help
@ -27,7 +27,7 @@ config LWIP_IRAM_OPTIMIZATION
If this feature is disabled, all lwip functions will be put into FLASH. If this feature is disabled, all lwip functions will be put into FLASH.
config LWIP_MAX_SOCKETS config LWIP_MAX_SOCKETS
int "Max number of open sockets" int "Max number of open sockets"
range 1 16 range 1 16
default 10 default 10
@ -37,7 +37,7 @@ config LWIP_MAX_SOCKETS
the maximum amount of sockets here. The valid value is from 1 the maximum amount of sockets here. The valid value is from 1
to 16. to 16.
config USE_ONLY_LWIP_SELECT config USE_ONLY_LWIP_SELECT
bool "Support LWIP socket select() only" bool "Support LWIP socket select() only"
default n default n
help help
@ -47,14 +47,14 @@ config USE_ONLY_LWIP_SELECT
will be redirected to lwip_select(), therefore, select can be used will be redirected to lwip_select(), therefore, select can be used
for sockets only. for sockets only.
config LWIP_SO_REUSE config LWIP_SO_REUSE
bool "Enable SO_REUSEADDR option" bool "Enable SO_REUSEADDR option"
default y default y
help help
Enabling this option allows binding to a port which remains in Enabling this option allows binding to a port which remains in
TIME_WAIT. TIME_WAIT.
config LWIP_SO_REUSE_RXTOALL config LWIP_SO_REUSE_RXTOALL
bool "SO_REUSEADDR copies broadcast/multicast to all matches" bool "SO_REUSEADDR copies broadcast/multicast to all matches"
depends on LWIP_SO_REUSE depends on LWIP_SO_REUSE
default y default y
@ -68,13 +68,13 @@ config LWIP_SO_REUSE_RXTOALL
disable it if you don't plan to receive broadcast or multicast disable it if you don't plan to receive broadcast or multicast
traffic on more than one socket at a time. traffic on more than one socket at a time.
config LWIP_SO_RCVBUF config LWIP_SO_RCVBUF
bool "Enable SO_RCVBUF option" bool "Enable SO_RCVBUF option"
default n default n
help help
Enabling this option allows checking for available data on a netconn. Enabling this option allows checking for available data on a netconn.
config LWIP_DHCP_MAX_NTP_SERVERS config LWIP_DHCP_MAX_NTP_SERVERS
int "Maximum number of NTP servers" int "Maximum number of NTP servers"
default 1 default 1
range 1 16 range 1 16
@ -83,26 +83,26 @@ config LWIP_DHCP_MAX_NTP_SERVERS
First argument of sntp_setserver/sntp_setservername functions First argument of sntp_setserver/sntp_setservername functions
is limited to this value. is limited to this value.
config LWIP_IP_FRAG config LWIP_IP_FRAG
bool "Enable fragment outgoing IP packets" bool "Enable fragment outgoing IP packets"
default n default n
help help
Enabling this option allows fragmenting outgoing IP packets if their size Enabling this option allows fragmenting outgoing IP packets if their size
exceeds MTU. exceeds MTU.
config LWIP_IP_REASSEMBLY config LWIP_IP_REASSEMBLY
bool "Enable reassembly incoming fragmented IP packets" bool "Enable reassembly incoming fragmented IP packets"
default n default n
help help
Enabling this option allows reassemblying incoming fragmented IP packets. Enabling this option allows reassemblying incoming fragmented IP packets.
config LWIP_STATS config LWIP_STATS
bool "Enable LWIP statistics" bool "Enable LWIP statistics"
default n default n
help help
Enabling this option allows LWIP statistics Enabling this option allows LWIP statistics
config LWIP_ETHARP_TRUST_IP_MAC config LWIP_ETHARP_TRUST_IP_MAC
bool "Enable LWIP ARP trust" bool "Enable LWIP ARP trust"
default n default n
help help
@ -128,7 +128,7 @@ config LWIP_ETHARP_TRUST_IP_MAC
So the recommendation is to disable this option. So the recommendation is to disable this option.
Here the LAN peer means the other side to which the ESP station or soft-AP is connected. Here the LAN peer means the other side to which the ESP station or soft-AP is connected.
config ESP_GRATUITOUS_ARP config ESP_GRATUITOUS_ARP
bool "Send gratuitous ARP periodically" bool "Send gratuitous ARP periodically"
default y default y
help help
@ -138,14 +138,14 @@ config ESP_GRATUITOUS_ARP
doesn't send ARP request to update it's ARP table, this will lead to the STA sending IP packet fail. doesn't send ARP request to update it's ARP table, this will lead to the STA sending IP packet fail.
Thus we send gratuitous ARP periodically to let AP update it's ARP table. Thus we send gratuitous ARP periodically to let AP update it's ARP table.
config GARP_TMR_INTERVAL config GARP_TMR_INTERVAL
int "GARP timer interval(seconds)" int "GARP timer interval(seconds)"
default 60 default 60
depends on ESP_GRATUITOUS_ARP depends on ESP_GRATUITOUS_ARP
help help
Set the timer interval for gratuitous ARP. The default value is 60s Set the timer interval for gratuitous ARP. The default value is 60s
config TCPIP_RECVMBOX_SIZE config TCPIP_RECVMBOX_SIZE
int "TCPIP task receive mail box size" int "TCPIP task receive mail box size"
default 32 default 32
range 6 64 range 6 64
@ -153,24 +153,24 @@ config TCPIP_RECVMBOX_SIZE
Set TCPIP task receive mail box size. Generally bigger value means higher throughput Set TCPIP task receive mail box size. Generally bigger value means higher throughput
but more memory. The value should be bigger than UDP/TCP mail box size. but more memory. The value should be bigger than UDP/TCP mail box size.
config LWIP_DHCP_DOES_ARP_CHECK config LWIP_DHCP_DOES_ARP_CHECK
bool "DHCP: Perform ARP check on any offered address" bool "DHCP: Perform ARP check on any offered address"
default y default y
help help
Enabling this option performs a check (via ARP request) if the offered IP address Enabling this option performs a check (via ARP request) if the offered IP address
is not already in use by another host on the network. is not already in use by another host on the network.
config LWIP_DHCP_RESTORE_LAST_IP config LWIP_DHCP_RESTORE_LAST_IP
bool "DHCP: Restore last IP obtained from DHCP server" bool "DHCP: Restore last IP obtained from DHCP server"
default n default n
help help
When this option is enabled, DHCP client tries to re-obtain last valid IP address obtained from DHCP server. When this option is enabled, DHCP client tries to re-obtain last valid IP address obtained from DHCP
Last valid DHCP configuration is stored in nvs and restored after reset/power-up. If IP is still available, server. Last valid DHCP configuration is stored in nvs and restored after reset/power-up. If IP is still
there is no need for sending discovery message to DHCP server and save some time. available, there is no need for sending discovery message to DHCP server and save some time.
menu "DHCP server" menu "DHCP server"
config LWIP_DHCPS_LEASE_UNIT config LWIP_DHCPS_LEASE_UNIT
int "Multiplier for lease time, in seconds" int "Multiplier for lease time, in seconds"
range 1 3600 range 1 3600
default 60 default 60
@ -179,7 +179,7 @@ config LWIP_DHCPS_LEASE_UNIT
and received times by this number of seconds per unit. and received times by this number of seconds per unit.
The default is 60, that equals one minute. The default is 60, that equals one minute.
config LWIP_DHCPS_MAX_STATION_NUM config LWIP_DHCPS_MAX_STATION_NUM
int "Maximum number of stations" int "Maximum number of stations"
range 1 64 range 1 64
default 8 default 8
@ -188,9 +188,9 @@ config LWIP_DHCPS_MAX_STATION_NUM
After this number is exceeded, DHCP server removes of the oldest device After this number is exceeded, DHCP server removes of the oldest device
from it's address pool, without notification. from it's address pool, without notification.
endmenu # DHCPS endmenu # DHCPS
menuconfig LWIP_AUTOIP menuconfig LWIP_AUTOIP
bool "Enable IPV4 Link-Local Addressing (AUTOIP)" bool "Enable IPV4 Link-Local Addressing (AUTOIP)"
default n default n
help help
@ -199,7 +199,7 @@ menuconfig LWIP_AUTOIP
See RFC 3927. See RFC 3927.
config LWIP_AUTOIP_TRIES config LWIP_AUTOIP_TRIES
int "DHCP Probes before self-assigning IPv4 LL address" int "DHCP Probes before self-assigning IPv4 LL address"
range 1 100 range 1 100
default 2 default 2
@ -213,7 +213,7 @@ config LWIP_AUTOIP_TRIES
changing IP address when DHCP overrides AutoIP." (In the case of changing IP address when DHCP overrides AutoIP." (In the case of
ESP-IDF, this means multiple SYSTEM_EVENT_STA_GOT_IP events.) ESP-IDF, this means multiple SYSTEM_EVENT_STA_GOT_IP events.)
config LWIP_AUTOIP_MAX_CONFLICTS config LWIP_AUTOIP_MAX_CONFLICTS
int "Max IP conflicts before rate limiting" int "Max IP conflicts before rate limiting"
range 1 100 range 1 100
default 9 default 9
@ -222,7 +222,7 @@ config LWIP_AUTOIP_MAX_CONFLICTS
If the AUTOIP functionality detects this many IP conflicts while If the AUTOIP functionality detects this many IP conflicts while
self-assigning an address, it will go into a rate limited mode. self-assigning an address, it will go into a rate limited mode.
config LWIP_AUTOIP_RATE_LIMIT_INTERVAL config LWIP_AUTOIP_RATE_LIMIT_INTERVAL
int "Rate limited interval (seconds)" int "Rate limited interval (seconds)"
range 5 120 range 5 120
default 20 default 20
@ -231,7 +231,7 @@ config LWIP_AUTOIP_RATE_LIMIT_INTERVAL
If rate limiting self-assignment requests, wait this long between If rate limiting self-assignment requests, wait this long between
each request. each request.
menuconfig LWIP_NETIF_LOOPBACK menuconfig LWIP_NETIF_LOOPBACK
bool "Support per-interface loopback" bool "Support per-interface loopback"
default y default y
help help
@ -239,7 +239,7 @@ menuconfig LWIP_NETIF_LOOPBACK
address equal to the interface's own IP address, it will "loop back" and address equal to the interface's own IP address, it will "loop back" and
be received by this interface. be received by this interface.
config LWIP_LOOPBACK_MAX_PBUFS config LWIP_LOOPBACK_MAX_PBUFS
int "Max queued loopback packets per interface" int "Max queued loopback packets per interface"
range 0 16 range 0 16
default 8 default 8
@ -249,9 +249,9 @@ config LWIP_LOOPBACK_MAX_PBUFS
loopback on a given interface. Reducing this number may cause packets loopback on a given interface. Reducing this number may cause packets
to be dropped, but will avoid filling memory with queued packet data. to be dropped, but will avoid filling memory with queued packet data.
menu "TCP" menu "TCP"
config LWIP_MAX_ACTIVE_TCP config LWIP_MAX_ACTIVE_TCP
int "Maximum active TCP Connections" int "Maximum active TCP Connections"
range 1 1024 range 1 1024
default 16 default 16
@ -264,7 +264,7 @@ config LWIP_MAX_ACTIVE_TCP
change the memory usage of LWIP, except for preventing change the memory usage of LWIP, except for preventing
new TCP connections after the limit is reached. new TCP connections after the limit is reached.
config LWIP_MAX_LISTENING_TCP config LWIP_MAX_LISTENING_TCP
int "Maximum listening TCP Connections" int "Maximum listening TCP Connections"
range 1 1024 range 1 1024
default 16 default 16
@ -278,21 +278,21 @@ config LWIP_MAX_LISTENING_TCP
new listening TCP connections after the limit is reached. new listening TCP connections after the limit is reached.
config TCP_MAXRTX config TCP_MAXRTX
int "Maximum number of retransmissions of data segments" int "Maximum number of retransmissions of data segments"
default 12 default 12
range 3 12 range 3 12
help help
Set maximum number of retransmissions of data segments. Set maximum number of retransmissions of data segments.
config TCP_SYNMAXRTX config TCP_SYNMAXRTX
int "Maximum number of retransmissions of SYN segments" int "Maximum number of retransmissions of SYN segments"
default 6 default 6
range 3 12 range 3 12
help help
Set maximum number of retransmissions of SYN segments. Set maximum number of retransmissions of SYN segments.
config TCP_MSS config TCP_MSS
int "Maximum Segment Size (MSS)" int "Maximum Segment Size (MSS)"
default 1436 default 1436
range 1220 1436 range 1220 1436
@ -301,13 +301,13 @@ config TCP_MSS
Can be set lower to save RAM, the default value 1436 will give best throughput. Can be set lower to save RAM, the default value 1436 will give best throughput.
config TCP_MSL config TCP_MSL
int "Maximum segment lifetime (MSL)" int "Maximum segment lifetime (MSL)"
default 60000 default 60000
help help
Set maximum segment lifetime in in milliseconds. Set maximum segment lifetime in in milliseconds.
config TCP_SND_BUF_DEFAULT config TCP_SND_BUF_DEFAULT
int "Default send buffer size" int "Default send buffer size"
default 5744 # 4 * default MSS default 5744 # 4 * default MSS
range 2440 65535 range 2440 65535
@ -323,7 +323,7 @@ config TCP_SND_BUF_DEFAULT
Setting a smaller default SNDBUF size can save some RAM, but Setting a smaller default SNDBUF size can save some RAM, but
will decrease performance. will decrease performance.
config TCP_WND_DEFAULT config TCP_WND_DEFAULT
int "Default receive window size" int "Default receive window size"
default 5744 # 4 * default MSS default 5744 # 4 * default MSS
range 2440 65535 range 2440 65535
@ -336,7 +336,7 @@ config TCP_WND_DEFAULT
Setting a smaller default receive window size can save some RAM, Setting a smaller default receive window size can save some RAM,
but will significantly decrease performance. but will significantly decrease performance.
config TCP_RECVMBOX_SIZE config TCP_RECVMBOX_SIZE
int "Default TCP receive mail box size" int "Default TCP receive mail box size"
default 6 default 6
range 6 64 range 6 64
@ -356,7 +356,7 @@ config TCP_RECVMBOX_SIZE
mail box is full, the LWIP drops the packets. So generally we need to make sure the TCP mail box is full, the LWIP drops the packets. So generally we need to make sure the TCP
receive mail box is big enough to avoid packet drop between LWIP core and application. receive mail box is big enough to avoid packet drop between LWIP core and application.
config TCP_QUEUE_OOSEQ config TCP_QUEUE_OOSEQ
bool "Queue incoming out-of-order segments" bool "Queue incoming out-of-order segments"
default y default y
help help
@ -365,7 +365,7 @@ config TCP_QUEUE_OOSEQ
Disable this option to save some RAM during TCP sessions, at the expense Disable this option to save some RAM during TCP sessions, at the expense
of increased retransmissions if segments arrive out of order. of increased retransmissions if segments arrive out of order.
config ESP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES config ESP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES
bool "Keep TCP connections when IP changed" bool "Keep TCP connections when IP changed"
default n default n
help help
@ -375,7 +375,7 @@ config ESP_TCP_KEEP_CONNECTION_WHEN_IP_CHANGES
Disable this option to keep consistent with the original LWIP code behavior. Disable this option to keep consistent with the original LWIP code behavior.
choice TCP_OVERSIZE choice TCP_OVERSIZE
prompt "Pre-allocate transmit PBUF size" prompt "Pre-allocate transmit PBUF size"
default TCP_OVERSIZE_MSS default TCP_OVERSIZE_MSS
help help
@ -390,20 +390,20 @@ choice TCP_OVERSIZE
have worst performance and fragmentation characteristics, but uses have worst performance and fragmentation characteristics, but uses
least RAM overall. least RAM overall.
config TCP_OVERSIZE_MSS config TCP_OVERSIZE_MSS
bool "MSS" bool "MSS"
config TCP_OVERSIZE_QUARTER_MSS config TCP_OVERSIZE_QUARTER_MSS
bool "25% MSS" bool "25% MSS"
config TCP_OVERSIZE_DISABLE config TCP_OVERSIZE_DISABLE
bool "Disabled" bool "Disabled"
endchoice endchoice
endmenu # TCP endmenu # TCP
menu "UDP" menu "UDP"
config LWIP_MAX_UDP_PCBS config LWIP_MAX_UDP_PCBS
int "Maximum active UDP control blocks" int "Maximum active UDP control blocks"
range 1 1024 range 1 1024
default 16 default 16
@ -413,7 +413,7 @@ config LWIP_MAX_UDP_PCBS
The practical maximum limit is determined by available The practical maximum limit is determined by available
heap memory at runtime. heap memory at runtime.
config UDP_RECVMBOX_SIZE config UDP_RECVMBOX_SIZE
int "Default UDP receive mail box size" int "Default UDP receive mail box size"
default 6 default 6
range 6 64 range 6 64
@ -430,9 +430,9 @@ config UDP_RECVMBOX_SIZE
mail box is full, the LWIP drops the packets. So generally we need to make sure the UDP mail box is full, the LWIP drops the packets. So generally we need to make sure the UDP
receive mail box is big enough to avoid packet drop between LWIP core and application. receive mail box is big enough to avoid packet drop between LWIP core and application.
endmenu # UDP endmenu # UDP
config TCPIP_TASK_STACK_SIZE config TCPIP_TASK_STACK_SIZE
int "TCP/IP Task Stack Size" int "TCP/IP Task Stack Size"
default 3072 default 3072
# for high log levels, tcpip_adapter API calls can end up # for high log levels, tcpip_adapter API calls can end up
@ -443,7 +443,7 @@ config TCPIP_TASK_STACK_SIZE
Configure TCP/IP task stack size, used by LWIP to process multi-threaded TCP/IP operations. Configure TCP/IP task stack size, used by LWIP to process multi-threaded TCP/IP operations.
Setting this stack too small will result in stack overflow crashes. Setting this stack too small will result in stack overflow crashes.
choice TCPIP_TASK_AFFINITY choice TCPIP_TASK_AFFINITY
prompt "TCP/IP task affinity" prompt "TCP/IP task affinity"
default TCPIP_TASK_AFFINITY_NO_AFFINITY default TCPIP_TASK_AFFINITY_NO_AFFINITY
help help
@ -451,24 +451,24 @@ choice TCPIP_TASK_AFFINITY
CPU0, pinned to CPU1, or allowed to run on any CPU. CPU0, pinned to CPU1, or allowed to run on any CPU.
Currently this applies to "TCP/IP" task and "Ping" task. Currently this applies to "TCP/IP" task and "Ping" task.
config TCPIP_TASK_AFFINITY_NO_AFFINITY config TCPIP_TASK_AFFINITY_NO_AFFINITY
bool "No affinity" bool "No affinity"
config TCPIP_TASK_AFFINITY_CPU0 config TCPIP_TASK_AFFINITY_CPU0
bool "CPU0" bool "CPU0"
config TCPIP_TASK_AFFINITY_CPU1 config TCPIP_TASK_AFFINITY_CPU1
bool "CPU1" bool "CPU1"
depends on !FREERTOS_UNICORE depends on !FREERTOS_UNICORE
endchoice endchoice
config TCPIP_TASK_AFFINITY config TCPIP_TASK_AFFINITY
hex hex
default FREERTOS_NO_AFFINITY if TCPIP_TASK_AFFINITY_NO_AFFINITY default FREERTOS_NO_AFFINITY if TCPIP_TASK_AFFINITY_NO_AFFINITY
default 0x0 if TCPIP_TASK_AFFINITY_CPU0 default 0x0 if TCPIP_TASK_AFFINITY_CPU0
default 0x1 if TCPIP_TASK_AFFINITY_CPU1 default 0x1 if TCPIP_TASK_AFFINITY_CPU1
menuconfig PPP_SUPPORT menuconfig PPP_SUPPORT
bool "Enable PPP support (new/experimental)" bool "Enable PPP support (new/experimental)"
default n default n
help help
@ -476,63 +476,63 @@ menuconfig PPP_SUPPORT
PPP over serial support is experimental and unsupported. PPP over serial support is experimental and unsupported.
config PPP_NOTIFY_PHASE_SUPPORT config PPP_NOTIFY_PHASE_SUPPORT
bool "Enable Notify Phase Callback" bool "Enable Notify Phase Callback"
depends on PPP_SUPPORT depends on PPP_SUPPORT
default n default n
help help
Enable to set a callback which is called on change of the internal PPP state machine. Enable to set a callback which is called on change of the internal PPP state machine.
config PPP_PAP_SUPPORT config PPP_PAP_SUPPORT
bool "Enable PAP support" bool "Enable PAP support"
depends on PPP_SUPPORT depends on PPP_SUPPORT
default n default n
help help
Enable Password Authentication Protocol (PAP) support Enable Password Authentication Protocol (PAP) support
config PPP_CHAP_SUPPORT config PPP_CHAP_SUPPORT
bool "Enable CHAP support" bool "Enable CHAP support"
depends on PPP_SUPPORT depends on PPP_SUPPORT
default n default n
help help
Enable Challenge Handshake Authentication Protocol (CHAP) support Enable Challenge Handshake Authentication Protocol (CHAP) support
config PPP_MSCHAP_SUPPORT config PPP_MSCHAP_SUPPORT
bool "Enable MSCHAP support" bool "Enable MSCHAP support"
depends on PPP_SUPPORT depends on PPP_SUPPORT
default n default n
help help
Enable Microsoft version of the Challenge-Handshake Authentication Protocol (MSCHAP) support Enable Microsoft version of the Challenge-Handshake Authentication Protocol (MSCHAP) support
config PPP_MPPE_SUPPORT config PPP_MPPE_SUPPORT
bool "Enable MPPE support" bool "Enable MPPE support"
depends on PPP_SUPPORT depends on PPP_SUPPORT
default n default n
help help
Enable Microsoft Point-to-Point Encryption (MPPE) support Enable Microsoft Point-to-Point Encryption (MPPE) support
config PPP_DEBUG_ON config PPP_DEBUG_ON
bool "Enable PPP debug log output" bool "Enable PPP debug log output"
depends on PPP_SUPPORT depends on PPP_SUPPORT
default n default n
help help
Enable PPP debug log output Enable PPP debug log output
menu "ICMP" menu "ICMP"
config LWIP_MULTICAST_PING config LWIP_MULTICAST_PING
bool "Respond to multicast pings" bool "Respond to multicast pings"
default n default n
config LWIP_BROADCAST_PING config LWIP_BROADCAST_PING
bool "Respond to broadcast pings" bool "Respond to broadcast pings"
default n default n
endmenu # ICMP endmenu # ICMP
menu "LWIP RAW API" menu "LWIP RAW API"
config LWIP_MAX_RAW_PCBS config LWIP_MAX_RAW_PCBS
int "Maximum LWIP RAW PCBs" int "Maximum LWIP RAW PCBs"
range 1 1024 range 1 1024
default 16 default 16
@ -541,6 +541,6 @@ config LWIP_MAX_RAW_PCBS
RAW protocol control blocks. The practical maximum RAW protocol control blocks. The practical maximum
limit is determined by available heap memory at runtime. limit is determined by available heap memory at runtime.
endmenu # LWIP RAW API endmenu # LWIP RAW API
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu "mbedTLS" menu "mbedTLS"
choice MBEDTLS_MEM_ALLOC_MODE choice MBEDTLS_MEM_ALLOC_MODE
prompt "Memory allocation strategy" prompt "Memory allocation strategy"
default MBEDTLS_INTERNAL_MEM_ALLOC default MBEDTLS_INTERNAL_MEM_ALLOC
help help
@ -19,22 +19,22 @@ choice MBEDTLS_MEM_ALLOC_MODE
allow sufficient free internal memory then alternate mode can be allow sufficient free internal memory then alternate mode can be
selected. selected.
config MBEDTLS_INTERNAL_MEM_ALLOC config MBEDTLS_INTERNAL_MEM_ALLOC
bool "Internal memory" bool "Internal memory"
config MBEDTLS_EXTERNAL_MEM_ALLOC config MBEDTLS_EXTERNAL_MEM_ALLOC
bool "External SPIRAM" bool "External SPIRAM"
depends on SPIRAM_SUPPORT depends on SPIRAM_SUPPORT
config MBEDTLS_DEFAULT_MEM_ALLOC config MBEDTLS_DEFAULT_MEM_ALLOC
bool "Default alloc mode" bool "Default alloc mode"
config MBEDTLS_CUSTOM_MEM_ALLOC config MBEDTLS_CUSTOM_MEM_ALLOC
bool "Custom alloc mode" bool "Custom alloc mode"
endchoice #MBEDTLS_MEM_ALLOC_MODE endchoice #MBEDTLS_MEM_ALLOC_MODE
config MBEDTLS_SSL_MAX_CONTENT_LEN config MBEDTLS_SSL_MAX_CONTENT_LEN
int "TLS maximum message content length" int "TLS maximum message content length"
default 16384 default 16384
range 512 16384 range 512 16384
@ -55,7 +55,7 @@ config MBEDTLS_SSL_MAX_CONTENT_LEN
handshake or a return value of MBEDTLS_ERR_SSL_INVALID_RECORD handshake or a return value of MBEDTLS_ERR_SSL_INVALID_RECORD
(-0x7200). (-0x7200).
config MBEDTLS_ASYMMETRIC_CONTENT_LEN config MBEDTLS_ASYMMETRIC_CONTENT_LEN
bool "Asymmetric in/out fragment length" bool "Asymmetric in/out fragment length"
default n default n
help help
@ -63,7 +63,7 @@ config MBEDTLS_ASYMMETRIC_CONTENT_LEN
in asymmetric way. Please note that enabling this with default values in asymmetric way. Please note that enabling this with default values
saves 12KB of dynamic memory per TLS connection. saves 12KB of dynamic memory per TLS connection.
config MBEDTLS_SSL_IN_CONTENT_LEN config MBEDTLS_SSL_IN_CONTENT_LEN
int "TLS maximum incoming fragment length" int "TLS maximum incoming fragment length"
default 16384 default 16384
range 512 16384 range 512 16384
@ -72,7 +72,7 @@ config MBEDTLS_SSL_IN_CONTENT_LEN
This defines maximum incoming fragment length, overriding default This defines maximum incoming fragment length, overriding default
maximum content length (MBEDTLS_SSL_MAX_CONTENT_LEN). maximum content length (MBEDTLS_SSL_MAX_CONTENT_LEN).
config MBEDTLS_SSL_OUT_CONTENT_LEN config MBEDTLS_SSL_OUT_CONTENT_LEN
int "TLS maximum outgoing fragment length" int "TLS maximum outgoing fragment length"
default 4096 default 4096
range 512 16384 range 512 16384
@ -81,7 +81,7 @@ config MBEDTLS_SSL_OUT_CONTENT_LEN
This defines maximum outgoing fragment length, overriding default This defines maximum outgoing fragment length, overriding default
maximum content length (MBEDTLS_SSL_MAX_CONTENT_LEN). maximum content length (MBEDTLS_SSL_MAX_CONTENT_LEN).
config MBEDTLS_DEBUG config MBEDTLS_DEBUG
bool "Enable mbedTLS debugging" bool "Enable mbedTLS debugging"
default n default n
help help
@ -92,7 +92,7 @@ config MBEDTLS_DEBUG
at runtime in order to enable mbedTLS debug output via the ESP at runtime in order to enable mbedTLS debug output via the ESP
log mechanism. log mechanism.
config MBEDTLS_HARDWARE_AES config MBEDTLS_HARDWARE_AES
bool "Enable hardware AES acceleration" bool "Enable hardware AES acceleration"
default y default y
help help
@ -101,7 +101,7 @@ config MBEDTLS_HARDWARE_AES
Note that if the ESP32 CPU is running at 240MHz, hardware AES does not Note that if the ESP32 CPU is running at 240MHz, hardware AES does not
offer any speed boost over software AES. offer any speed boost over software AES.
config MBEDTLS_HARDWARE_MPI config MBEDTLS_HARDWARE_MPI
bool "Enable hardware MPI (bignum) acceleration" bool "Enable hardware MPI (bignum) acceleration"
default n default n
help help
@ -112,7 +112,7 @@ config MBEDTLS_HARDWARE_MPI
These operations are used by RSA. These operations are used by RSA.
config MBEDTLS_MPI_USE_INTERRUPT config MBEDTLS_MPI_USE_INTERRUPT
bool "Use interrupt for MPI operations" bool "Use interrupt for MPI operations"
depends on MBEDTLS_HARDWARE_MPI depends on MBEDTLS_HARDWARE_MPI
default n default n
@ -122,7 +122,7 @@ config MBEDTLS_MPI_USE_INTERRUPT
This allows other code to run on the CPU while an MPI operation is pending. This allows other code to run on the CPU while an MPI operation is pending.
Otherwise the CPU busy-waits. Otherwise the CPU busy-waits.
config MBEDTLS_HARDWARE_SHA config MBEDTLS_HARDWARE_SHA
bool "Enable hardware SHA acceleration" bool "Enable hardware SHA acceleration"
default n default n
help help
@ -137,7 +137,7 @@ config MBEDTLS_HARDWARE_SHA
SHA hardware acceleration is faster than software in some situations but SHA hardware acceleration is faster than software in some situations but
slower in others. You should benchmark to find the best setting for you. slower in others. You should benchmark to find the best setting for you.
config MBEDTLS_HAVE_TIME config MBEDTLS_HAVE_TIME
bool "Enable mbedtls time" bool "Enable mbedtls time"
depends on !ESP32_TIME_SYSCALL_USE_NONE depends on !ESP32_TIME_SYSCALL_USE_NONE
default y default y
@ -145,7 +145,7 @@ config MBEDTLS_HAVE_TIME
System has time.h and time(). System has time.h and time().
The time does not need to be correct, only time differences are used. The time does not need to be correct, only time differences are used.
config MBEDTLS_HAVE_TIME_DATE config MBEDTLS_HAVE_TIME_DATE
bool "Enable mbedtls certificate expiry check" bool "Enable mbedtls certificate expiry check"
depends on MBEDTLS_HAVE_TIME depends on MBEDTLS_HAVE_TIME
default n default n
@ -157,7 +157,7 @@ config MBEDTLS_HAVE_TIME_DATE
It is suggested that you should get the real time by "SNTP". It is suggested that you should get the real time by "SNTP".
choice MBEDTLS_TLS_MODE choice MBEDTLS_TLS_MODE
bool "TLS Protocol Role" bool "TLS Protocol Role"
default MBEDTLS_TLS_SERVER_AND_CLIENT default MBEDTLS_TLS_SERVER_AND_CLIENT
help help
@ -166,34 +166,34 @@ choice MBEDTLS_TLS_MODE
Reducing the number of TLS roles supported saves code size. Reducing the number of TLS roles supported saves code size.
config MBEDTLS_TLS_SERVER_AND_CLIENT config MBEDTLS_TLS_SERVER_AND_CLIENT
bool "Server & Client" bool "Server & Client"
select MBEDTLS_TLS_SERVER select MBEDTLS_TLS_SERVER
select MBEDTLS_TLS_CLIENT select MBEDTLS_TLS_CLIENT
config MBEDTLS_TLS_SERVER_ONLY config MBEDTLS_TLS_SERVER_ONLY
bool "Server" bool "Server"
select MBEDTLS_TLS_SERVER select MBEDTLS_TLS_SERVER
config MBEDTLS_TLS_CLIENT_ONLY config MBEDTLS_TLS_CLIENT_ONLY
bool "Client" bool "Client"
select MBEDTLS_TLS_CLIENT select MBEDTLS_TLS_CLIENT
config MBEDTLS_TLS_DISABLED config MBEDTLS_TLS_DISABLED
bool "None" bool "None"
endchoice endchoice
config MBEDTLS_TLS_SERVER config MBEDTLS_TLS_SERVER
bool bool
select MBEDTLS_TLS_ENABLED select MBEDTLS_TLS_ENABLED
config MBEDTLS_TLS_CLIENT config MBEDTLS_TLS_CLIENT
bool bool
select MBEDTLS_TLS_ENABLED select MBEDTLS_TLS_ENABLED
config MBEDTLS_TLS_ENABLED config MBEDTLS_TLS_ENABLED
bool bool
menu "TLS Key Exchange Methods" menu "TLS Key Exchange Methods"
depends on MBEDTLS_TLS_ENABLED depends on MBEDTLS_TLS_ENABLED
config MBEDTLS_PSK_MODES config MBEDTLS_PSK_MODES
bool "Enable pre-shared-key ciphersuites" bool "Enable pre-shared-key ciphersuites"
default n default n
help help
@ -201,47 +201,47 @@ config MBEDTLS_PSK_MODES
Leaving this options disabled will save code size if they are not used. Leaving this options disabled will save code size if they are not used.
config MBEDTLS_KEY_EXCHANGE_PSK config MBEDTLS_KEY_EXCHANGE_PSK
bool "Enable PSK based ciphersuite modes" bool "Enable PSK based ciphersuite modes"
depends on MBEDTLS_PSK_MODES depends on MBEDTLS_PSK_MODES
default n default n
help help
Enable to support symmetric key PSK (pre-shared-key) TLS key exchange modes. Enable to support symmetric key PSK (pre-shared-key) TLS key exchange modes.
config MBEDTLS_KEY_EXCHANGE_DHE_PSK config MBEDTLS_KEY_EXCHANGE_DHE_PSK
bool "Enable DHE-PSK based ciphersuite modes" bool "Enable DHE-PSK based ciphersuite modes"
depends on MBEDTLS_PSK_MODES depends on MBEDTLS_PSK_MODES
default y default y
help help
Enable to support Diffie-Hellman PSK (pre-shared-key) TLS authentication modes. Enable to support Diffie-Hellman PSK (pre-shared-key) TLS authentication modes.
config MBEDTLS_KEY_EXCHANGE_ECDHE_PSK config MBEDTLS_KEY_EXCHANGE_ECDHE_PSK
bool "Enable ECDHE-PSK based ciphersuite modes" bool "Enable ECDHE-PSK based ciphersuite modes"
depends on MBEDTLS_PSK_MODES depends on MBEDTLS_PSK_MODES
default y default y
help help
Enable to support Elliptic-Curve-Diffie-Hellman PSK (pre-shared-key) TLS authentication modes. Enable to support Elliptic-Curve-Diffie-Hellman PSK (pre-shared-key) TLS authentication modes.
config MBEDTLS_KEY_EXCHANGE_RSA_PSK config MBEDTLS_KEY_EXCHANGE_RSA_PSK
bool "Enable RSA-PSK based ciphersuite modes" bool "Enable RSA-PSK based ciphersuite modes"
depends on MBEDTLS_PSK_MODES depends on MBEDTLS_PSK_MODES
default y default y
help help
Enable to support RSA PSK (pre-shared-key) TLS authentication modes. Enable to support RSA PSK (pre-shared-key) TLS authentication modes.
config MBEDTLS_KEY_EXCHANGE_RSA config MBEDTLS_KEY_EXCHANGE_RSA
bool "Enable RSA-only based ciphersuite modes" bool "Enable RSA-only based ciphersuite modes"
default y default y
help help
Enable to support ciphersuites with prefix TLS-RSA-WITH- Enable to support ciphersuites with prefix TLS-RSA-WITH-
config MBEDTLS_KEY_EXCHANGE_DHE_RSA config MBEDTLS_KEY_EXCHANGE_DHE_RSA
bool "Enable DHE-RSA based ciphersuite modes" bool "Enable DHE-RSA based ciphersuite modes"
default y default y
help help
Enable to support ciphersuites with prefix TLS-DHE-RSA-WITH- Enable to support ciphersuites with prefix TLS-DHE-RSA-WITH-
config MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE config MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE
bool "Support Elliptic Curve based ciphersuites" bool "Support Elliptic Curve based ciphersuites"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
@ -252,37 +252,37 @@ config MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE
can give slightly faster TLS handshakes, provided the server supports can give slightly faster TLS handshakes, provided the server supports
RSA-only ciphersuite modes. RSA-only ciphersuite modes.
config MBEDTLS_KEY_EXCHANGE_ECDHE_RSA config MBEDTLS_KEY_EXCHANGE_ECDHE_RSA
bool "Enable ECDHE-RSA based ciphersuite modes" bool "Enable ECDHE-RSA based ciphersuite modes"
depends on MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE && MBEDTLS_ECDH_C depends on MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE && MBEDTLS_ECDH_C
default y default y
help help
Enable to support ciphersuites with prefix TLS-ECDHE-RSA-WITH- Enable to support ciphersuites with prefix TLS-ECDHE-RSA-WITH-
config MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA config MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA
bool "Enable ECDHE-ECDSA based ciphersuite modes" bool "Enable ECDHE-ECDSA based ciphersuite modes"
depends on MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE && MBEDTLS_ECDH_C && MBEDTLS_ECDSA_C depends on MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE && MBEDTLS_ECDH_C && MBEDTLS_ECDSA_C
default y default y
help help
Enable to support ciphersuites with prefix TLS-ECDHE-RSA-WITH- Enable to support ciphersuites with prefix TLS-ECDHE-RSA-WITH-
config MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA config MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA
bool "Enable ECDH-ECDSA based ciphersuite modes" bool "Enable ECDH-ECDSA based ciphersuite modes"
depends on MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE && MBEDTLS_ECDH_C && MBEDTLS_ECDSA_C depends on MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE && MBEDTLS_ECDH_C && MBEDTLS_ECDSA_C
default y default y
help help
Enable to support ciphersuites with prefix TLS-ECDHE-RSA-WITH- Enable to support ciphersuites with prefix TLS-ECDHE-RSA-WITH-
config MBEDTLS_KEY_EXCHANGE_ECDH_RSA config MBEDTLS_KEY_EXCHANGE_ECDH_RSA
bool "Enable ECDH-RSA based ciphersuite modes" bool "Enable ECDH-RSA based ciphersuite modes"
depends on MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE && MBEDTLS_ECDH_C depends on MBEDTLS_KEY_EXCHANGE_ELLIPTIC_CURVE && MBEDTLS_ECDH_C
default y default y
help help
Enable to support ciphersuites with prefix TLS-ECDHE-RSA-WITH- Enable to support ciphersuites with prefix TLS-ECDHE-RSA-WITH-
endmenu # TLS key exchange modes endmenu # TLS key exchange modes
config MBEDTLS_SSL_RENEGOTIATION config MBEDTLS_SSL_RENEGOTIATION
bool "Support TLS renegotiation" bool "Support TLS renegotiation"
depends on MBEDTLS_TLS_ENABLED depends on MBEDTLS_TLS_ENABLED
default y default y
@ -292,7 +292,7 @@ config MBEDTLS_SSL_RENEGOTIATION
If you don't need renegotiation, disabling it will save code size and If you don't need renegotiation, disabling it will save code size and
reduce the possibility of abuse/vulnerability. reduce the possibility of abuse/vulnerability.
config MBEDTLS_SSL_PROTO_SSL3 config MBEDTLS_SSL_PROTO_SSL3
bool "Legacy SSL 3.0 support" bool "Legacy SSL 3.0 support"
depends on MBEDTLS_TLS_ENABLED depends on MBEDTLS_TLS_ENABLED
default n default n
@ -300,22 +300,22 @@ config MBEDTLS_SSL_PROTO_SSL3
Support the legacy SSL 3.0 protocol. Most servers will speak a newer Support the legacy SSL 3.0 protocol. Most servers will speak a newer
TLS protocol these days. TLS protocol these days.
config MBEDTLS_SSL_PROTO_TLS1 config MBEDTLS_SSL_PROTO_TLS1
bool "Support TLS 1.0 protocol" bool "Support TLS 1.0 protocol"
depends on MBEDTLS_TLS_ENABLED depends on MBEDTLS_TLS_ENABLED
default y default y
config MBEDTLS_SSL_PROTO_TLS1_1 config MBEDTLS_SSL_PROTO_TLS1_1
bool "Support TLS 1.1 protocol" bool "Support TLS 1.1 protocol"
depends on MBEDTLS_TLS_ENABLED depends on MBEDTLS_TLS_ENABLED
default y default y
config MBEDTLS_SSL_PROTO_TLS1_2 config MBEDTLS_SSL_PROTO_TLS1_2
bool "Support TLS 1.2 protocol" bool "Support TLS 1.2 protocol"
depends on MBEDTLS_TLS_ENABLED depends on MBEDTLS_TLS_ENABLED
default y default y
config MBEDTLS_SSL_PROTO_DTLS config MBEDTLS_SSL_PROTO_DTLS
bool "Support DTLS protocol (all versions)" bool "Support DTLS protocol (all versions)"
default n default n
depends on MBEDTLS_SSL_PROTO_TLS1_1 || MBEDTLS_SSL_PROTO_TLS1_2 depends on MBEDTLS_SSL_PROTO_TLS1_1 || MBEDTLS_SSL_PROTO_TLS1_2
@ -323,14 +323,14 @@ config MBEDTLS_SSL_PROTO_DTLS
Requires TLS 1.1 to be enabled for DTLS 1.0 Requires TLS 1.1 to be enabled for DTLS 1.0
Requires TLS 1.2 to be enabled for DTLS 1.2 Requires TLS 1.2 to be enabled for DTLS 1.2
config MBEDTLS_SSL_ALPN config MBEDTLS_SSL_ALPN
bool "Support ALPN (Application Layer Protocol Negotiation)" bool "Support ALPN (Application Layer Protocol Negotiation)"
depends on MBEDTLS_TLS_ENABLED depends on MBEDTLS_TLS_ENABLED
default y default y
help help
Disabling this option will save some code size if it is not needed. Disabling this option will save some code size if it is not needed.
config MBEDTLS_SSL_SESSION_TICKETS config MBEDTLS_SSL_SESSION_TICKETS
bool "TLS: Support RFC 5077 SSL session tickets" bool "TLS: Support RFC 5077 SSL session tickets"
default y default y
depends on MBEDTLS_TLS_ENABLED depends on MBEDTLS_TLS_ENABLED
@ -339,17 +339,17 @@ config MBEDTLS_SSL_SESSION_TICKETS
Disabling this option will save some code size. Disabling this option will save some code size.
menu "Symmetric Ciphers" menu "Symmetric Ciphers"
config MBEDTLS_AES_C config MBEDTLS_AES_C
bool "AES block cipher" bool "AES block cipher"
default y default y
config MBEDTLS_CAMELLIA_C config MBEDTLS_CAMELLIA_C
bool "Camellia block cipher" bool "Camellia block cipher"
default n default n
config MBEDTLS_DES_C config MBEDTLS_DES_C
bool "DES block cipher (legacy, insecure)" bool "DES block cipher (legacy, insecure)"
default n default n
help help
@ -358,7 +358,7 @@ config MBEDTLS_DES_C
3DES is vulnerable to the Sweet32 attack and should only be enabled 3DES is vulnerable to the Sweet32 attack and should only be enabled
if absolutely necessary. if absolutely necessary.
choice MBEDTLS_RC4_MODE choice MBEDTLS_RC4_MODE
prompt "RC4 Stream Cipher (legacy, insecure)" prompt "RC4 Stream Cipher (legacy, insecure)"
default MBEDTLS_RC4_DISABLED default MBEDTLS_RC4_DISABLED
help help
@ -367,15 +367,15 @@ choice MBEDTLS_RC4_MODE
Please consider the security implications before enabling RC4. Please consider the security implications before enabling RC4.
config MBEDTLS_RC4_DISABLED config MBEDTLS_RC4_DISABLED
bool "Disabled" bool "Disabled"
config MBEDTLS_RC4_ENABLED_NO_DEFAULT config MBEDTLS_RC4_ENABLED_NO_DEFAULT
bool "Enabled, not in default ciphersuites" bool "Enabled, not in default ciphersuites"
config MBEDTLS_RC4_ENABLED config MBEDTLS_RC4_ENABLED
bool "Enabled" bool "Enabled"
endchoice endchoice
config MBEDTLS_BLOWFISH_C config MBEDTLS_BLOWFISH_C
bool "Blowfish block cipher (read help)" bool "Blowfish block cipher (read help)"
default n default n
help help
@ -385,14 +385,14 @@ config MBEDTLS_BLOWFISH_C
used for other purposes. Read up on the limitations of Blowfish (including used for other purposes. Read up on the limitations of Blowfish (including
Sweet32) before enabling. Sweet32) before enabling.
config MBEDTLS_XTEA_C config MBEDTLS_XTEA_C
bool "XTEA block cipher" bool "XTEA block cipher"
default n default n
help help
Enables the XTEA block cipher. Enables the XTEA block cipher.
config MBEDTLS_CCM_C config MBEDTLS_CCM_C
bool "CCM (Counter with CBC-MAC) block cipher modes" bool "CCM (Counter with CBC-MAC) block cipher modes"
default y default y
depends on MBEDTLS_AES_C || MBEDTLS_CAMELLIA_C depends on MBEDTLS_AES_C || MBEDTLS_CAMELLIA_C
@ -401,7 +401,7 @@ config MBEDTLS_CCM_C
Disabling this option saves some code size. Disabling this option saves some code size.
config MBEDTLS_GCM_C config MBEDTLS_GCM_C
bool "GCM (Galois/Counter) block cipher modes" bool "GCM (Galois/Counter) block cipher modes"
default y default y
depends on MBEDTLS_AES_C || MBEDTLS_CAMELLIA_C depends on MBEDTLS_AES_C || MBEDTLS_CAMELLIA_C
@ -410,17 +410,17 @@ config MBEDTLS_GCM_C
This option is generally faster than CCM. This option is generally faster than CCM.
endmenu # Symmetric Ciphers endmenu # Symmetric Ciphers
config MBEDTLS_RIPEMD160_C config MBEDTLS_RIPEMD160_C
bool "Enable RIPEMD-160 hash algorithm" bool "Enable RIPEMD-160 hash algorithm"
default n default n
help help
Enable the RIPEMD-160 hash algorithm. Enable the RIPEMD-160 hash algorithm.
menu "Certificates" menu "Certificates"
config MBEDTLS_PEM_PARSE_C config MBEDTLS_PEM_PARSE_C
bool "Read & Parse PEM formatted certificates" bool "Read & Parse PEM formatted certificates"
default y default y
help help
@ -429,7 +429,7 @@ config MBEDTLS_PEM_PARSE_C
If your certificates are all in the simpler DER format, disabling If your certificates are all in the simpler DER format, disabling
this option will save some code size. this option will save some code size.
config MBEDTLS_PEM_WRITE_C config MBEDTLS_PEM_WRITE_C
bool "Write PEM formatted certificates" bool "Write PEM formatted certificates"
default y default y
help help
@ -438,123 +438,123 @@ config MBEDTLS_PEM_WRITE_C
If writing certificate data only in DER format, disabling this If writing certificate data only in DER format, disabling this
option will save some code size. option will save some code size.
config MBEDTLS_X509_CRL_PARSE_C config MBEDTLS_X509_CRL_PARSE_C
bool "X.509 CRL parsing" bool "X.509 CRL parsing"
default y default y
help help
Support for parsing X.509 Certifificate Revocation Lists. Support for parsing X.509 Certifificate Revocation Lists.
config MBEDTLS_X509_CSR_PARSE_C config MBEDTLS_X509_CSR_PARSE_C
bool "X.509 CSR parsing" bool "X.509 CSR parsing"
default y default y
help help
Support for parsing X.509 Certifificate Signing Requests Support for parsing X.509 Certifificate Signing Requests
endmenu # Certificates endmenu # Certificates
menuconfig MBEDTLS_ECP_C menuconfig MBEDTLS_ECP_C
bool "Elliptic Curve Ciphers" bool "Elliptic Curve Ciphers"
default y default y
config MBEDTLS_ECDH_C config MBEDTLS_ECDH_C
bool "Elliptic Curve Diffie-Hellman (ECDH)" bool "Elliptic Curve Diffie-Hellman (ECDH)"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable ECDH. Needed to use ECDHE-xxx TLS ciphersuites. Enable ECDH. Needed to use ECDHE-xxx TLS ciphersuites.
config MBEDTLS_ECDSA_C config MBEDTLS_ECDSA_C
bool "Elliptic Curve DSA" bool "Elliptic Curve DSA"
depends on MBEDTLS_ECDH_C depends on MBEDTLS_ECDH_C
default y default y
help help
Enable ECDSA. Needed to use ECDSA-xxx TLS ciphersuites. Enable ECDSA. Needed to use ECDSA-xxx TLS ciphersuites.
config MBEDTLS_ECP_DP_SECP192R1_ENABLED config MBEDTLS_ECP_DP_SECP192R1_ENABLED
bool "Enable SECP192R1 curve" bool "Enable SECP192R1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for SECP192R1 Elliptic Curve. Enable support for SECP192R1 Elliptic Curve.
config MBEDTLS_ECP_DP_SECP224R1_ENABLED config MBEDTLS_ECP_DP_SECP224R1_ENABLED
bool "Enable SECP224R1 curve" bool "Enable SECP224R1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for SECP224R1 Elliptic Curve. Enable support for SECP224R1 Elliptic Curve.
config MBEDTLS_ECP_DP_SECP256R1_ENABLED config MBEDTLS_ECP_DP_SECP256R1_ENABLED
bool "Enable SECP256R1 curve" bool "Enable SECP256R1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for SECP256R1 Elliptic Curve. Enable support for SECP256R1 Elliptic Curve.
config MBEDTLS_ECP_DP_SECP384R1_ENABLED config MBEDTLS_ECP_DP_SECP384R1_ENABLED
bool "Enable SECP384R1 curve" bool "Enable SECP384R1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for SECP384R1 Elliptic Curve. Enable support for SECP384R1 Elliptic Curve.
config MBEDTLS_ECP_DP_SECP521R1_ENABLED config MBEDTLS_ECP_DP_SECP521R1_ENABLED
bool "Enable SECP521R1 curve" bool "Enable SECP521R1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for SECP521R1 Elliptic Curve. Enable support for SECP521R1 Elliptic Curve.
config MBEDTLS_ECP_DP_SECP192K1_ENABLED config MBEDTLS_ECP_DP_SECP192K1_ENABLED
bool "Enable SECP192K1 curve" bool "Enable SECP192K1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for SECP192K1 Elliptic Curve. Enable support for SECP192K1 Elliptic Curve.
config MBEDTLS_ECP_DP_SECP224K1_ENABLED config MBEDTLS_ECP_DP_SECP224K1_ENABLED
bool "Enable SECP224K1 curve" bool "Enable SECP224K1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for SECP224K1 Elliptic Curve. Enable support for SECP224K1 Elliptic Curve.
config MBEDTLS_ECP_DP_SECP256K1_ENABLED config MBEDTLS_ECP_DP_SECP256K1_ENABLED
bool "Enable SECP256K1 curve" bool "Enable SECP256K1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for SECP256K1 Elliptic Curve. Enable support for SECP256K1 Elliptic Curve.
config MBEDTLS_ECP_DP_BP256R1_ENABLED config MBEDTLS_ECP_DP_BP256R1_ENABLED
bool "Enable BP256R1 curve" bool "Enable BP256R1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
support for DP Elliptic Curve. support for DP Elliptic Curve.
config MBEDTLS_ECP_DP_BP384R1_ENABLED config MBEDTLS_ECP_DP_BP384R1_ENABLED
bool "Enable BP384R1 curve" bool "Enable BP384R1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
support for DP Elliptic Curve. support for DP Elliptic Curve.
config MBEDTLS_ECP_DP_BP512R1_ENABLED config MBEDTLS_ECP_DP_BP512R1_ENABLED
bool "Enable BP512R1 curve" bool "Enable BP512R1 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
support for DP Elliptic Curve. support for DP Elliptic Curve.
config MBEDTLS_ECP_DP_CURVE25519_ENABLED config MBEDTLS_ECP_DP_CURVE25519_ENABLED
bool "Enable CURVE25519 curve" bool "Enable CURVE25519 curve"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
help help
Enable support for CURVE25519 Elliptic Curve. Enable support for CURVE25519 Elliptic Curve.
config MBEDTLS_ECP_NIST_OPTIM config MBEDTLS_ECP_NIST_OPTIM
bool "NIST 'modulo p' optimisations" bool "NIST 'modulo p' optimisations"
depends on MBEDTLS_ECP_C depends on MBEDTLS_ECP_C
default y default y
@ -563,6 +563,6 @@ config MBEDTLS_ECP_NIST_OPTIM
Disabling this option saves some code size. Disabling this option saves some code size.
# end of Elliptic Curve options # end of Elliptic Curve options
endmenu # mbedTLS endmenu # mbedTLS

View File

@ -1,6 +1,6 @@
menu "mDNS" menu "mDNS"
config MDNS_MAX_SERVICES config MDNS_MAX_SERVICES
int "Max number of services" int "Max number of services"
range 1 64 range 1 64
default 10 default 10

View File

@ -1,24 +1,24 @@
menu "ESP-MQTT Configurations" menu "ESP-MQTT Configurations"
config MQTT_PROTOCOL_311 config MQTT_PROTOCOL_311
bool "Enable MQTT protocol 3.1.1" bool "Enable MQTT protocol 3.1.1"
default y default y
help help
If not, this library will use MQTT protocol 3.1 If not, this library will use MQTT protocol 3.1
config MQTT_TRANSPORT_SSL config MQTT_TRANSPORT_SSL
bool "Enable MQTT over SSL" bool "Enable MQTT over SSL"
default y default y
help help
Enable MQTT transport over SSL with mbedtls Enable MQTT transport over SSL with mbedtls
config MQTT_TRANSPORT_WEBSOCKET config MQTT_TRANSPORT_WEBSOCKET
bool "Enable MQTT over Websocket" bool "Enable MQTT over Websocket"
default y default y
help help
Enable MQTT transport over Websocket. Enable MQTT transport over Websocket.
config MQTT_TRANSPORT_WEBSOCKET_SECURE config MQTT_TRANSPORT_WEBSOCKET_SECURE
bool "Enable MQTT over Websocket Secure" bool "Enable MQTT over Websocket Secure"
default y default y
depends on MQTT_TRANSPORT_WEBSOCKET depends on MQTT_TRANSPORT_WEBSOCKET
@ -26,20 +26,20 @@ config MQTT_TRANSPORT_WEBSOCKET_SECURE
help help
Enable MQTT transport over Websocket Secure. Enable MQTT transport over Websocket Secure.
config MQTT_USE_CUSTOM_CONFIG config MQTT_USE_CUSTOM_CONFIG
bool "MQTT Using custom configurations" bool "MQTT Using custom configurations"
default n default n
help help
Custom MQTT configurations. Custom MQTT configurations.
config MQTT_TCP_DEFAULT_PORT config MQTT_TCP_DEFAULT_PORT
int "Default MQTT over TCP port" int "Default MQTT over TCP port"
default 1883 default 1883
depends on MQTT_USE_CUSTOM_CONFIG depends on MQTT_USE_CUSTOM_CONFIG
help help
Default MQTT over TCP port Default MQTT over TCP port
config MQTT_SSL_DEFAULT_PORT config MQTT_SSL_DEFAULT_PORT
int "Default MQTT over SSL port" int "Default MQTT over SSL port"
default 8883 default 8883
depends on MQTT_USE_CUSTOM_CONFIG depends on MQTT_USE_CUSTOM_CONFIG
@ -47,7 +47,7 @@ config MQTT_SSL_DEFAULT_PORT
help help
Default MQTT over SSL port Default MQTT over SSL port
config MQTT_WS_DEFAULT_PORT config MQTT_WS_DEFAULT_PORT
int "Default MQTT over Websocket port" int "Default MQTT over Websocket port"
default 80 default 80
depends on MQTT_USE_CUSTOM_CONFIG depends on MQTT_USE_CUSTOM_CONFIG
@ -55,7 +55,7 @@ config MQTT_WS_DEFAULT_PORT
help help
Default MQTT over Websocket port Default MQTT over Websocket port
config MQTT_WSS_DEFAULT_PORT config MQTT_WSS_DEFAULT_PORT
int "Default MQTT over Websocket Secure port" int "Default MQTT over Websocket Secure port"
default 443 default 443
depends on MQTT_USE_CUSTOM_CONFIG depends on MQTT_USE_CUSTOM_CONFIG
@ -64,27 +64,27 @@ config MQTT_WSS_DEFAULT_PORT
help help
Default MQTT over Websocket Secure port Default MQTT over Websocket Secure port
config MQTT_BUFFER_SIZE config MQTT_BUFFER_SIZE
int "Default MQTT Buffer Size" int "Default MQTT Buffer Size"
default 1024 default 1024
depends on MQTT_USE_CUSTOM_CONFIG depends on MQTT_USE_CUSTOM_CONFIG
help help
This buffer size using for both transmit and receive This buffer size using for both transmit and receive
config MQTT_TASK_STACK_SIZE config MQTT_TASK_STACK_SIZE
int "MQTT task stack size" int "MQTT task stack size"
default 6144 default 6144
depends on MQTT_USE_CUSTOM_CONFIG depends on MQTT_USE_CUSTOM_CONFIG
help help
MQTT task stack size MQTT task stack size
config MQTT_TASK_CORE_SELECTION_ENABLED config MQTT_TASK_CORE_SELECTION_ENABLED
bool "Enable MQTT task core selection" bool "Enable MQTT task core selection"
default false default false
help help
This will enable core selection This will enable core selection
choice MQTT_TASK_CORE_SELECTION choice MQTT_TASK_CORE_SELECTION
depends on MQTT_TASK_CORE_SELECTION_ENABLED depends on MQTT_TASK_CORE_SELECTION_ENABLED
prompt "Core to use ?" prompt "Core to use ?"
config MQTT_USE_CORE_0 config MQTT_USE_CORE_0
@ -93,10 +93,11 @@ choice MQTT_TASK_CORE_SELECTION
bool "Core 1" bool "Core 1"
endchoice endchoice
config MQTT_CUSTOM_OUTBOX config MQTT_CUSTOM_OUTBOX
bool "Enable custom outbox implementation" bool "Enable custom outbox implementation"
default n default n
help help
Set to true if a specific implementation of message outbox is needed (e.g. persistant outbox in NVM or similar). Set to true if a specific implementation of message outbox is needed (e.g. persistant outbox in NVM or
similar).
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu NVS menu NVS
config NVS_ENCRYPTION config NVS_ENCRYPTION
bool "Enable NVS encryption" bool "Enable NVS encryption"
default n default n
depends on FLASH_ENCRYPTION_ENABLED depends on FLASH_ENCRYPTION_ENABLED

View File

@ -1,6 +1,6 @@
menu "OpenSSL" menu "OpenSSL"
config OPENSSL_DEBUG config OPENSSL_DEBUG
bool "Enable OpenSSL debugging" bool "Enable OpenSSL debugging"
default n default n
help help
@ -8,7 +8,7 @@ config OPENSSL_DEBUG
If the option is enabled, "SSL_DEBUG" works. If the option is enabled, "SSL_DEBUG" works.
config OPENSSL_DEBUG_LEVEL config OPENSSL_DEBUG_LEVEL
int "OpenSSL debugging level" int "OpenSSL debugging level"
default 0 default 0
range 0 255 range 0 255
@ -19,17 +19,19 @@ config OPENSSL_DEBUG_LEVEL
Only function whose debugging level is higher than "OPENSSL_DEBUG_LEVEL" works. Only function whose debugging level is higher than "OPENSSL_DEBUG_LEVEL" works.
For example: For example:
If OPENSSL_DEBUG_LEVEL = 2, you use function "SSL_DEBUG(1, "malloc failed")". Because 1 < 2, it will not print. If OPENSSL_DEBUG_LEVEL = 2, you use function "SSL_DEBUG(1, "malloc failed")". Because 1 < 2, it will not
print.
config OPENSSL_LOWLEVEL_DEBUG config OPENSSL_LOWLEVEL_DEBUG
bool "Enable OpenSSL low-level module debugging" bool "Enable OpenSSL low-level module debugging"
default n default n
depends on OPENSSL_DEBUG depends on OPENSSL_DEBUG
select MBEDTLS_DEBUG select MBEDTLS_DEBUG
help help
If the option is enabled, low-level module debugging function of OpenSSL is enabled, e.g. mbedtls internal debugging function. If the option is enabled, low-level module debugging function of OpenSSL is enabled, e.g. mbedtls internal
debugging function.
choice OPENSSL_ASSERT choice OPENSSL_ASSERT
prompt "Select OpenSSL assert function" prompt "Select OpenSSL assert function"
default CONFIG_OPENSSL_ASSERT_EXIT default CONFIG_OPENSSL_ASSERT_EXIT
help help
@ -37,34 +39,34 @@ choice OPENSSL_ASSERT
If you want to use assert debugging function, "OPENSSL_DEBUG" should be enabled. If you want to use assert debugging function, "OPENSSL_DEBUG" should be enabled.
config OPENSSL_ASSERT_DO_NOTHING config OPENSSL_ASSERT_DO_NOTHING
bool "Do nothing" bool "Do nothing"
help help
Do nothing and "SSL_ASSERT" does not work. Do nothing and "SSL_ASSERT" does not work.
config OPENSSL_ASSERT_EXIT config OPENSSL_ASSERT_EXIT
bool "Check and exit" bool "Check and exit"
help help
Enable assert exiting, it will check and return error code. Enable assert exiting, it will check and return error code.
config OPENSSL_ASSERT_DEBUG config OPENSSL_ASSERT_DEBUG
bool "Show debugging message" bool "Show debugging message"
depends on OPENSSL_DEBUG depends on OPENSSL_DEBUG
help help
Enable assert debugging, it will check and show debugging message. Enable assert debugging, it will check and show debugging message.
config OPENSSL_ASSERT_DEBUG_EXIT config OPENSSL_ASSERT_DEBUG_EXIT
bool "Show debugging message and exit" bool "Show debugging message and exit"
depends on OPENSSL_DEBUG depends on OPENSSL_DEBUG
help help
Enable assert debugging and exiting, it will check, show debugging message and return error code. Enable assert debugging and exiting, it will check, show debugging message and return error code.
config OPENSSL_ASSERT_DEBUG_BLOCK config OPENSSL_ASSERT_DEBUG_BLOCK
bool "Show debugging message and block" bool "Show debugging message and block"
depends on OPENSSL_DEBUG depends on OPENSSL_DEBUG
help help
Enable assert debugging and blocking, it will check, show debugging message and block by "while (1);". Enable assert debugging and blocking, it will check, show debugging message and block by "while (1);".
endchoice endchoice
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu "Partition Table" menu "Partition Table"
choice PARTITION_TABLE_TYPE choice PARTITION_TABLE_TYPE
prompt "Partition Table" prompt "Partition Table"
default PARTITION_TABLE_SINGLE_APP default PARTITION_TABLE_SINGLE_APP
help help
@ -12,22 +12,22 @@ choice PARTITION_TABLE_TYPE
in the components/partition_table directory. Otherwise it's in the components/partition_table directory. Otherwise it's
possible to create a new custom partition CSV for your application. possible to create a new custom partition CSV for your application.
config PARTITION_TABLE_SINGLE_APP config PARTITION_TABLE_SINGLE_APP
bool "Single factory app, no OTA" bool "Single factory app, no OTA"
config PARTITION_TABLE_TWO_OTA config PARTITION_TABLE_TWO_OTA
bool "Factory app, two OTA definitions" bool "Factory app, two OTA definitions"
config PARTITION_TABLE_CUSTOM config PARTITION_TABLE_CUSTOM
bool "Custom partition table CSV" bool "Custom partition table CSV"
endchoice endchoice
config PARTITION_TABLE_CUSTOM_FILENAME config PARTITION_TABLE_CUSTOM_FILENAME
string "Custom partition CSV file" if PARTITION_TABLE_CUSTOM string "Custom partition CSV file" if PARTITION_TABLE_CUSTOM
default partitions.csv default partitions.csv
help help
Name of the custom partition CSV filename. This path is evaluated Name of the custom partition CSV filename. This path is evaluated
relative to the project root directory. relative to the project root directory.
config PARTITION_TABLE_FILENAME config PARTITION_TABLE_FILENAME
string string
default partitions_singleapp.csv if PARTITION_TABLE_SINGLE_APP && !ESP32_ENABLE_COREDUMP_TO_FLASH default partitions_singleapp.csv if PARTITION_TABLE_SINGLE_APP && !ESP32_ENABLE_COREDUMP_TO_FLASH
default partitions_singleapp_coredump.csv if PARTITION_TABLE_SINGLE_APP && ESP32_ENABLE_COREDUMP_TO_FLASH default partitions_singleapp_coredump.csv if PARTITION_TABLE_SINGLE_APP && ESP32_ENABLE_COREDUMP_TO_FLASH
@ -35,7 +35,7 @@ config PARTITION_TABLE_FILENAME
default partitions_two_ota_coredump.csv if PARTITION_TABLE_TWO_OTA && ESP32_ENABLE_COREDUMP_TO_FLASH default partitions_two_ota_coredump.csv if PARTITION_TABLE_TWO_OTA && ESP32_ENABLE_COREDUMP_TO_FLASH
default PARTITION_TABLE_CUSTOM_FILENAME if PARTITION_TABLE_CUSTOM default PARTITION_TABLE_CUSTOM_FILENAME if PARTITION_TABLE_CUSTOM
config PARTITION_TABLE_OFFSET config PARTITION_TABLE_OFFSET
hex "Offset of partition table" hex "Offset of partition table"
default 0x8000 default 0x8000
help help
@ -45,10 +45,11 @@ config PARTITION_TABLE_OFFSET
This number should be a multiple of 0x1000. This number should be a multiple of 0x1000.
Note that partition offsets in the partition table CSV file may need to be changed if this value is set to a higher value. To have Note that partition offsets in the partition table CSV file may need to be changed if this value is set to
each partition offset adapt to the configured partition table offset, leave all partition offsets blank in the CSV file. a higher value. To have each partition offset adapt to the configured partition table offset, leave all
partition offsets blank in the CSV file.
config PARTITION_TABLE_MD5 config PARTITION_TABLE_MD5
bool "Generate an MD5 checksum for the partition table" bool "Generate an MD5 checksum for the partition table"
default y default y
help help
@ -58,5 +59,3 @@ config PARTITION_TABLE_MD5
table. table.
endmenu endmenu

View File

@ -1,46 +1,46 @@
menu "PThreads" menu "PThreads"
config ESP32_PTHREAD_TASK_PRIO_DEFAULT config ESP32_PTHREAD_TASK_PRIO_DEFAULT
int "Default task priority" int "Default task priority"
range 0 255 range 0 255
default 5 default 5
help help
Priority used to create new tasks with default pthread parameters. Priority used to create new tasks with default pthread parameters.
config ESP32_PTHREAD_TASK_STACK_SIZE_DEFAULT config ESP32_PTHREAD_TASK_STACK_SIZE_DEFAULT
int "Default task stack size" int "Default task stack size"
default 3072 default 3072
help help
Stack size used to create new tasks with default pthread parameters. Stack size used to create new tasks with default pthread parameters.
config PTHREAD_STACK_MIN config PTHREAD_STACK_MIN
int "Minimum allowed pthread stack size" int "Minimum allowed pthread stack size"
default 768 default 768
help help
Minimum allowed pthread stack size set in attributes passed to pthread_create Minimum allowed pthread stack size set in attributes passed to pthread_create
choice ESP32_PTHREAD_TASK_CORE_DEFAULT choice ESP32_PTHREAD_TASK_CORE_DEFAULT
bool "Default pthread core affinity" bool "Default pthread core affinity"
default ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY default ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY
depends on !FREERTOS_UNICORE depends on !FREERTOS_UNICORE
help help
The default core to which pthreads are pinned. The default core to which pthreads are pinned.
config ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY config ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY
bool "No affinity" bool "No affinity"
config ESP32_DEFAULT_PTHREAD_CORE_0 config ESP32_DEFAULT_PTHREAD_CORE_0
bool "Core 0" bool "Core 0"
config ESP32_DEFAULT_PTHREAD_CORE_1 config ESP32_DEFAULT_PTHREAD_CORE_1
bool "Core 1" bool "Core 1"
endchoice endchoice
config ESP32_PTHREAD_TASK_CORE_DEFAULT config ESP32_PTHREAD_TASK_CORE_DEFAULT
int int
default -1 if ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY || FREERTOS_UNICORE default -1 if ESP32_DEFAULT_PTHREAD_CORE_NO_AFFINITY || FREERTOS_UNICORE
default 0 if ESP32_DEFAULT_PTHREAD_CORE_0 default 0 if ESP32_DEFAULT_PTHREAD_CORE_0
default 1 if ESP32_DEFAULT_PTHREAD_CORE_1 default 1 if ESP32_DEFAULT_PTHREAD_CORE_1
config ESP32_PTHREAD_TASK_NAME_DEFAULT config ESP32_PTHREAD_TASK_NAME_DEFAULT
string "Default name of pthreads" string "Default name of pthreads"
default "pthread" default "pthread"
help help

View File

@ -1,6 +1,6 @@
menu "SPI Flash driver" menu "SPI Flash driver"
config SPI_FLASH_VERIFY_WRITE config SPI_FLASH_VERIFY_WRITE
bool "Verify SPI flash writes" bool "Verify SPI flash writes"
default n default n
help help
@ -8,7 +8,7 @@ config SPI_FLASH_VERIFY_WRITE
back and verified. This can catch hardware problems with SPI flash, or flash which back and verified. This can catch hardware problems with SPI flash, or flash which
was not erased before verification. was not erased before verification.
config SPI_FLASH_LOG_FAILED_WRITE config SPI_FLASH_LOG_FAILED_WRITE
bool "Log errors if verification fails" bool "Log errors if verification fails"
depends on SPI_FLASH_VERIFY_WRITE depends on SPI_FLASH_VERIFY_WRITE
default n default n
@ -17,7 +17,7 @@ config SPI_FLASH_LOG_FAILED_WRITE
will be written with the address, expected & actual values. This can be useful when will be written with the address, expected & actual values. This can be useful when
debugging hardware SPI flash problems. debugging hardware SPI flash problems.
config SPI_FLASH_WARN_SETTING_ZERO_TO_ONE config SPI_FLASH_WARN_SETTING_ZERO_TO_ONE
bool "Log warning if writing zero bits to ones" bool "Log warning if writing zero bits to ones"
depends on SPI_FLASH_VERIFY_WRITE depends on SPI_FLASH_VERIFY_WRITE
default n default n
@ -31,7 +31,7 @@ config SPI_FLASH_WARN_SETTING_ZERO_TO_ONE
optimisation, relying on the data in flash becoming a bitwise AND of the new data and any existing data. optimisation, relying on the data in flash becoming a bitwise AND of the new data and any existing data.
Such software will log spurious warnings if this option is enabled. Such software will log spurious warnings if this option is enabled.
config SPI_FLASH_ENABLE_COUNTERS config SPI_FLASH_ENABLE_COUNTERS
bool "Enable operation counters" bool "Enable operation counters"
default 0 default 0
help help
@ -44,7 +44,7 @@ config SPI_FLASH_ENABLE_COUNTERS
These APIs may be used to collect performance data for spi_flash APIs These APIs may be used to collect performance data for spi_flash APIs
and to help understand behaviour of libraries which use SPI flash. and to help understand behaviour of libraries which use SPI flash.
config SPI_FLASH_ROM_DRIVER_PATCH config SPI_FLASH_ROM_DRIVER_PATCH
bool "Enable SPI flash ROM driver patched functions" bool "Enable SPI flash ROM driver patched functions"
default y default y
help help
@ -52,7 +52,7 @@ config SPI_FLASH_ROM_DRIVER_PATCH
This option is needed to write to flash on ESP32-D2WD, and any configuration This option is needed to write to flash on ESP32-D2WD, and any configuration
where external SPI flash is connected to non-default pins. where external SPI flash is connected to non-default pins.
choice SPI_FLASH_WRITING_DANGEROUS_REGIONS choice SPI_FLASH_WRITING_DANGEROUS_REGIONS
bool "Writing to dangerous flash regions" bool "Writing to dangerous flash regions"
default SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS default SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS
help help
@ -69,13 +69,13 @@ choice SPI_FLASH_WRITING_DANGEROUS_REGIONS
ROM functions. These functions should not be called directly from IDF ROM functions. These functions should not be called directly from IDF
applications. applications.
config SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS config SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS
bool "Aborts" bool "Aborts"
config SPI_FLASH_WRITING_DANGEROUS_REGIONS_FAILS config SPI_FLASH_WRITING_DANGEROUS_REGIONS_FAILS
bool "Fails" bool "Fails"
config SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED config SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED
bool "Allowed" bool "Allowed"
endchoice endchoice
endmenu endmenu

View File

@ -1,37 +1,37 @@
menu "SPIFFS Configuration" menu "SPIFFS Configuration"
config SPIFFS_MAX_PARTITIONS config SPIFFS_MAX_PARTITIONS
int "Maximum Number of Partitions" int "Maximum Number of Partitions"
default 3 default 3
range 1 10 range 1 10
help help
Define maximum number of partitions that can be mounted. Define maximum number of partitions that can be mounted.
menu "SPIFFS Cache Configuration" menu "SPIFFS Cache Configuration"
config SPIFFS_CACHE config SPIFFS_CACHE
bool "Enable SPIFFS Cache" bool "Enable SPIFFS Cache"
default "y" default "y"
help help
Enables/disable memory read caching of nucleus file system Enables/disable memory read caching of nucleus file system
operations. operations.
config SPIFFS_CACHE_WR config SPIFFS_CACHE_WR
bool "Enable SPIFFS Write Caching" bool "Enable SPIFFS Write Caching"
default "y" default "y"
depends on SPIFFS_CACHE depends on SPIFFS_CACHE
help help
Enables memory write caching for file descriptors in hydrogen. Enables memory write caching for file descriptors in hydrogen.
config SPIFFS_CACHE_STATS config SPIFFS_CACHE_STATS
bool "Enable SPIFFS Cache Statistics" bool "Enable SPIFFS Cache Statistics"
default "n" default "n"
depends on SPIFFS_CACHE depends on SPIFFS_CACHE
help help
Enable/disable statistics on caching. Debug/test purpose only. Enable/disable statistics on caching. Debug/test purpose only.
endmenu endmenu
config SPIFFS_PAGE_CHECK config SPIFFS_PAGE_CHECK
bool "Enable SPIFFS Page Check" bool "Enable SPIFFS Page Check"
default "y" default "y"
help help
@ -39,20 +39,20 @@ config SPIFFS_PAGE_CHECK
If enabled it will increase number of reads from flash, especially If enabled it will increase number of reads from flash, especially
if cache is disabled. if cache is disabled.
config SPIFFS_GC_MAX_RUNS config SPIFFS_GC_MAX_RUNS
int "Set Maximum GC Runs" int "Set Maximum GC Runs"
default 10 default 10
range 1 255 range 1 255
help help
Define maximum number of GC runs to perform to reach desired free pages. Define maximum number of GC runs to perform to reach desired free pages.
config SPIFFS_GC_STATS config SPIFFS_GC_STATS
bool "Enable SPIFFS GC Statistics" bool "Enable SPIFFS GC Statistics"
default "n" default "n"
help help
Enable/disable statistics on gc. Debug/test purpose only. Enable/disable statistics on gc. Debug/test purpose only.
config SPIFFS_PAGE_SIZE config SPIFFS_PAGE_SIZE
int "SPIFFS logical page size" int "SPIFFS logical page size"
default 256 default 256
range 256 1024 range 256 1024
@ -64,7 +64,7 @@ config SPIFFS_PAGE_SIZE
Smaller page sizes reduce overhead when storing small (< page size) Smaller page sizes reduce overhead when storing small (< page size)
files. files.
config SPIFFS_OBJ_NAME_LEN config SPIFFS_OBJ_NAME_LEN
int "Set SPIFFS Maximum Name Length" int "Set SPIFFS Maximum Name Length"
default 32 default 32
range 1 256 range 1 256
@ -76,7 +76,7 @@ config SPIFFS_OBJ_NAME_LEN
SPIFFS_OBJ_NAME_LEN + SPIFFS_META_LENGTH should not exceed SPIFFS_OBJ_NAME_LEN + SPIFFS_META_LENGTH should not exceed
SPIFFS_PAGE_SIZE - 64. SPIFFS_PAGE_SIZE - 64.
config SPIFFS_USE_MAGIC config SPIFFS_USE_MAGIC
bool "Enable SPIFFS Filesystem Magic" bool "Enable SPIFFS Filesystem Magic"
default "y" default "y"
help help
@ -84,7 +84,7 @@ config SPIFFS_USE_MAGIC
This will look for a magic in all sectors to determine if this This will look for a magic in all sectors to determine if this
is a valid spiffs system or not at mount time. is a valid spiffs system or not at mount time.
config SPIFFS_USE_MAGIC_LENGTH config SPIFFS_USE_MAGIC_LENGTH
bool "Enable SPIFFS Filesystem Length Magic" bool "Enable SPIFFS Filesystem Length Magic"
default "y" default "y"
depends on SPIFFS_USE_MAGIC depends on SPIFFS_USE_MAGIC
@ -94,7 +94,7 @@ config SPIFFS_USE_MAGIC_LENGTH
configured and formatted for 4 megabytes will not be accepted configured and formatted for 4 megabytes will not be accepted
for mounting with a configuration defining the filesystem as 2 megabytes. for mounting with a configuration defining the filesystem as 2 megabytes.
config SPIFFS_META_LENGTH config SPIFFS_META_LENGTH
int "Size of per-file metadata field" int "Size of per-file metadata field"
default 4 default 4
help help
@ -106,7 +106,7 @@ config SPIFFS_META_LENGTH
SPIFFS_OBJ_NAME_LEN + SPIFFS_META_LENGTH should not exceed SPIFFS_OBJ_NAME_LEN + SPIFFS_META_LENGTH should not exceed
SPIFFS_PAGE_SIZE - 64. SPIFFS_PAGE_SIZE - 64.
config SPIFFS_USE_MTIME config SPIFFS_USE_MTIME
bool "Save file modification time" bool "Save file modification time"
default "y" default "y"
depends on SPIFFS_META_LENGTH >= 4 depends on SPIFFS_META_LENGTH >= 4
@ -116,46 +116,46 @@ config SPIFFS_USE_MTIME
stat/fstat functions. stat/fstat functions.
Modification time is updated when the file is opened. Modification time is updated when the file is opened.
menu "Debug Configuration" menu "Debug Configuration"
config SPIFFS_DBG config SPIFFS_DBG
bool "Enable general SPIFFS debug" bool "Enable general SPIFFS debug"
default "n" default "n"
help help
Enabling this option will print general debug mesages to the console. Enabling this option will print general debug mesages to the console.
config SPIFFS_API_DBG config SPIFFS_API_DBG
bool "Enable SPIFFS API debug" bool "Enable SPIFFS API debug"
default "n" default "n"
help help
Enabling this option will print API debug mesages to the console. Enabling this option will print API debug mesages to the console.
config SPIFFS_GC_DBG config SPIFFS_GC_DBG
bool "Enable SPIFFS Garbage Cleaner debug" bool "Enable SPIFFS Garbage Cleaner debug"
default "n" default "n"
help help
Enabling this option will print GC debug mesages to the console. Enabling this option will print GC debug mesages to the console.
config SPIFFS_CACHE_DBG config SPIFFS_CACHE_DBG
bool "Enable SPIFFS Cache debug" bool "Enable SPIFFS Cache debug"
default "n" default "n"
depends on SPIFFS_CACHE depends on SPIFFS_CACHE
help help
Enabling this option will print cache debug mesages to the console. Enabling this option will print cache debug mesages to the console.
config SPIFFS_CHECK_DBG config SPIFFS_CHECK_DBG
bool "Enable SPIFFS Filesystem Check debug" bool "Enable SPIFFS Filesystem Check debug"
default "n" default "n"
help help
Enabling this option will print Filesystem Check debug mesages Enabling this option will print Filesystem Check debug mesages
to the console. to the console.
config SPIFFS_TEST_VISUALISATION config SPIFFS_TEST_VISUALISATION
bool "Enable SPIFFS Filesystem Visualization" bool "Enable SPIFFS Filesystem Visualization"
default "n" default "n"
help help
Enable this option to enable SPIFFS_vis function in the API. Enable this option to enable SPIFFS_vis function in the API.
endmenu endmenu
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu "TCP/IP Adapter" menu "TCP/IP Adapter"
config IP_LOST_TIMER_INTERVAL config IP_LOST_TIMER_INTERVAL
int "IP Address lost timer interval (seconds)" int "IP Address lost timer interval (seconds)"
range 0 65535 range 0 65535
default 120 default 120
@ -13,15 +13,15 @@ config IP_LOST_TIMER_INTERVAL
the timer expires. The IP lost timer is stopped if the station get the IP again before the timer expires. The IP lost timer is stopped if the station get the IP again before
the timer expires. the timer expires.
choice USE_TCPIP_STACK_LIB choice USE_TCPIP_STACK_LIB
prompt "TCP/IP Stack Library" prompt "TCP/IP Stack Library"
default TCPIP_LWIP default TCPIP_LWIP
help help
Choose the TCP/IP Stack to work, for example, LwIP, uIP, etc. Choose the TCP/IP Stack to work, for example, LwIP, uIP, etc.
config TCPIP_LWIP config TCPIP_LWIP
bool "LwIP" bool "LwIP"
help help
lwIP is a small independent implementation of the TCP/IP protocol suite. lwIP is a small independent implementation of the TCP/IP protocol suite.
endchoice endchoice
endmenu endmenu

View File

@ -1,29 +1,29 @@
menu "Unity unit testing library" menu "Unity unit testing library"
config UNITY_ENABLE_FLOAT config UNITY_ENABLE_FLOAT
bool "Support for float type" bool "Support for float type"
default y default y
help help
If not set, assertions on float arguments will not be available. If not set, assertions on float arguments will not be available.
config UNITY_ENABLE_DOUBLE config UNITY_ENABLE_DOUBLE
bool "Support for double type" bool "Support for double type"
default y default y
help help
If not set, assertions on double arguments will not be available. If not set, assertions on double arguments will not be available.
config UNITY_ENABLE_COLOR config UNITY_ENABLE_COLOR
bool "Colorize test output" bool "Colorize test output"
default n default n
help help
If set, Unity will colorize test results using console escape sequences. If set, Unity will colorize test results using console escape sequences.
config UNITY_ENABLE_IDF_TEST_RUNNER config UNITY_ENABLE_IDF_TEST_RUNNER
bool "Include ESP-IDF test registration/running helpers" bool "Include ESP-IDF test registration/running helpers"
default y default y
help help
If set, then the following features will be available: If set, then the following features will be available:
- TEST_CASE macro which performs automatic registration of test functions - TEST_CASE macro which performs automatic registration of test functions
@ -34,10 +34,10 @@ help
Disable if a different test registration mechanism is used. Disable if a different test registration mechanism is used.
config UNITY_ENABLE_FIXTURE config UNITY_ENABLE_FIXTURE
bool "Include Unity test fixture" bool "Include Unity test fixture"
default n default n
help help
If set, unity_fixture.h header file and associated source files are part of If set, unity_fixture.h header file and associated source files are part of
the build. These provide an optional set of macros and functions to the build. These provide an optional set of macros and functions to
implement test groups. implement test groups.

View File

@ -1,6 +1,6 @@
menu "Virtual file system" menu "Virtual file system"
config SUPPRESS_SELECT_DEBUG_OUTPUT config SUPPRESS_SELECT_DEBUG_OUTPUT
bool "Suppress select() related debug outputs" bool "Suppress select() related debug outputs"
default y default y
help help
@ -9,7 +9,7 @@ config SUPPRESS_SELECT_DEBUG_OUTPUT
It is possible to suppress these debug outputs by enabling this It is possible to suppress these debug outputs by enabling this
option. option.
config SUPPORT_TERMIOS config SUPPORT_TERMIOS
bool "Add support for termios.h" bool "Add support for termios.h"
default y default y
help help

View File

@ -1,6 +1,6 @@
menu "Wear Levelling" menu "Wear Levelling"
choice WL_SECTOR_SIZE choice WL_SECTOR_SIZE
bool "Wear Levelling library sector size" bool "Wear Levelling library sector size"
default WL_SECTOR_SIZE_4096 default WL_SECTOR_SIZE_4096
help help
@ -18,18 +18,18 @@ choice WL_SECTOR_SIZE
filesystem library (512 bytes for the filesystem and 512 bytes for each filesystem library (512 bytes for the filesystem and 512 bytes for each
file opened). file opened).
config WL_SECTOR_SIZE_512 config WL_SECTOR_SIZE_512
bool "512" bool "512"
config WL_SECTOR_SIZE_4096 config WL_SECTOR_SIZE_4096
bool "4096" bool "4096"
endchoice endchoice
config WL_SECTOR_SIZE config WL_SECTOR_SIZE
int int
default 512 if WL_SECTOR_SIZE_512 default 512 if WL_SECTOR_SIZE_512
default 4096 if WL_SECTOR_SIZE_4096 default 4096 if WL_SECTOR_SIZE_4096
choice WL_SECTOR_MODE choice WL_SECTOR_MODE
bool "Sector store mode" bool "Sector store mode"
depends on WL_SECTOR_SIZE_512 depends on WL_SECTOR_SIZE_512
default WL_SECTOR_MODE_SAFE default WL_SECTOR_MODE_SAFE
@ -47,14 +47,14 @@ choice WL_SECTOR_MODE
power is lost during erase sector operation, then the data from full power is lost during erase sector operation, then the data from full
flash device sector will not be lost. flash device sector will not be lost.
config WL_SECTOR_MODE_PERF config WL_SECTOR_MODE_PERF
bool "Perfomance" bool "Perfomance"
config WL_SECTOR_MODE_SAFE config WL_SECTOR_MODE_SAFE
bool "Safety" bool "Safety"
endchoice endchoice
config WL_SECTOR_MODE config WL_SECTOR_MODE
int int
default 0 if WL_SECTOR_MODE_PERF default 0 if WL_SECTOR_MODE_PERF
default 1 if WL_SECTOR_MODE_SAFE default 1 if WL_SECTOR_MODE_SAFE

View File

@ -1,43 +1,42 @@
menu "A2DP Example Configuration" menu "A2DP Example Configuration"
choice A2DP_SINK_OUTPUT choice A2DP_SINK_OUTPUT
prompt "A2DP Sink Output" prompt "A2DP Sink Output"
default A2DP_SINK_OUTPUT_EXTERNAL_I2S default A2DP_SINK_OUTPUT_EXTERNAL_I2S
help help
Select to use Internal DAC or external I2S driver Select to use Internal DAC or external I2S driver
config A2DP_SINK_OUTPUT_INTERNAL_DAC config A2DP_SINK_OUTPUT_INTERNAL_DAC
bool "Internal DAC" bool "Internal DAC"
help help
Select this to use Internal DAC sink output Select this to use Internal DAC sink output
config A2DP_SINK_OUTPUT_EXTERNAL_I2S config A2DP_SINK_OUTPUT_EXTERNAL_I2S
bool "External I2S Codec" bool "External I2S Codec"
help help
Select this to use External I2S sink output Select this to use External I2S sink output
endchoice endchoice
config I2S_LRCK_PIN config I2S_LRCK_PIN
int "I2S LRCK (WS) GPIO" int "I2S LRCK (WS) GPIO"
default 22 default 22
depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S
help help
GPIO number to use for I2S LRCK(WS) Driver. GPIO number to use for I2S LRCK(WS) Driver.
config I2S_BCK_PIN config I2S_BCK_PIN
int "I2S BCK GPIO" int "I2S BCK GPIO"
default 26 default 26
depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S
help help
GPIO number to use for I2S BCK Driver. GPIO number to use for I2S BCK Driver.
config I2S_DATA_PIN config I2S_DATA_PIN
int "I2S DATA GPIO" int "I2S DATA GPIO"
default 25 default 25
depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S
help help
GPIO number to use for I2S Data Driver. GPIO number to use for I2S Data Driver.
endmenu endmenu

View File

@ -1,43 +1,42 @@
menu "A2DP Example Configuration" menu "A2DP Example Configuration"
choice A2DP_SINK_OUTPUT choice A2DP_SINK_OUTPUT
prompt "A2DP Sink Output" prompt "A2DP Sink Output"
default A2DP_SINK_OUTPUT_EXTERNAL_I2S default A2DP_SINK_OUTPUT_EXTERNAL_I2S
help help
Select to use Internal DAC or external I2S driver Select to use Internal DAC or external I2S driver
config A2DP_SINK_OUTPUT_INTERNAL_DAC config A2DP_SINK_OUTPUT_INTERNAL_DAC
bool "Internal DAC" bool "Internal DAC"
help help
Select this to use Internal DAC sink output Select this to use Internal DAC sink output
config A2DP_SINK_OUTPUT_EXTERNAL_I2S config A2DP_SINK_OUTPUT_EXTERNAL_I2S
bool "External I2S Codec" bool "External I2S Codec"
help help
Select this to use External I2S sink output Select this to use External I2S sink output
endchoice endchoice
config I2S_LRCK_PIN config I2S_LRCK_PIN
int "I2S LRCK (WS) GPIO" int "I2S LRCK (WS) GPIO"
default 22 default 22
depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S
help help
GPIO number to use for I2S LRCK(WS) Driver. GPIO number to use for I2S LRCK(WS) Driver.
config I2S_BCK_PIN config I2S_BCK_PIN
int "I2S BCK GPIO" int "I2S BCK GPIO"
default 26 default 26
depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S
help help
GPIO number to use for I2S BCK Driver. GPIO number to use for I2S BCK Driver.
config I2S_DATA_PIN config I2S_DATA_PIN
int "I2S DATA GPIO" int "I2S DATA GPIO"
default 25 default 25
depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S depends on A2DP_SINK_OUTPUT_EXTERNAL_I2S
help help
GPIO number to use for I2S Data Driver. GPIO number to use for I2S Data Driver.
endmenu endmenu

View File

@ -1,24 +1,24 @@
menu "iBeacon Example Configuration" menu "iBeacon Example Configuration"
choice IBEACON_MODE choice IBEACON_MODE
bool "iBeacon Mode" bool "iBeacon Mode"
default IBEACON_SENDER default IBEACON_SENDER
help help
Select the iBeacon Mode. Select the iBeacon Mode.
config IBEACON_SENDER config IBEACON_SENDER
bool "iBeacon Sender Mode" bool "iBeacon Sender Mode"
help help
Select the iBeacon Sender Mode. Select the iBeacon Sender Mode.
config IBEACON_RECEIVER config IBEACON_RECEIVER
bool "iBeacon Receiver Mode" bool "iBeacon Receiver Mode"
help help
Select the iBeacon Receiver Mode. Select the iBeacon Receiver Mode.
endchoice endchoice
config IBEACON_MODE config IBEACON_MODE
int int
default 0 if IBEACON_SENDER default 0 if IBEACON_SENDER
default 1 if IBEACON_RECEIVER default 1 if IBEACON_RECEIVER

View File

@ -1,14 +1,14 @@
menu "Example 'GATT CLIENT THROUGHPUT' Config" menu "Example 'GATT CLIENT THROUGHPUT' Config"
config GATTS_NOTIFY_THROUGHPUT config GATTS_NOTIFY_THROUGHPUT
bool "test the gatts notify throughput" bool "test the gatts notify throughput"
help help
If this config item is set, then the 'GATTC_WRITE_THROUGHPUT' config should be close, it can't test both write or notify at the same time at this demo If this config item is set, then the 'GATTC_WRITE_THROUGHPUT' config should be close, it can't test both
write or notify at the same time at this demo
config GATTC_WRITE_THROUGHPUT config GATTC_WRITE_THROUGHPUT
bool "test the gattc write throughput" bool "test the gattc write throughput"
help help
If this config item is set, then the 'GATTS_NOTIFY_THROUGHPUT' config should be close, it can't test both write or notify at the same time at this demo If this config item is set, then the 'GATTS_NOTIFY_THROUGHPUT' config should be close, it can't test both
write or notify at the same time at this demo
endmenu endmenu

View File

@ -1,23 +1,27 @@
menu "Example 'GATT SERVER THROUGHPUT' Config" menu "Example 'GATT SERVER THROUGHPUT' Config"
config SET_RAW_ADV_DATA config SET_RAW_ADV_DATA
bool "Use raw data for advertising packets and scan response data" bool "Use raw data for advertising packets and scan response data"
help help
If this config item is set, raw binary data will be used to generate advertising & scan response data. If this config item is set, raw binary data will be used to generate advertising & scan response data.
This option uses the esp_ble_gap_config_adv_data_raw() and esp_ble_gap_config_scan_rsp_data_raw() functions. This option uses the esp_ble_gap_config_adv_data_raw() and esp_ble_gap_config_scan_rsp_data_raw()
functions.
If this config item is unset, advertising & scan response data is provided via a higher-level esp_ble_adv_data_t structure. If this config item is unset, advertising & scan response data is provided via a higher-level
The lower layer will generate the BLE packets. This option has higher overhead at runtime. esp_ble_adv_data_t structure. The lower layer will generate the BLE packets. This option has higher
overhead at runtime.
config GATTS_NOTIFY_THROUGHPUT config GATTS_NOTIFY_THROUGHPUT
bool "test the gatts notify throughput" bool "test the gatts notify throughput"
help help
If this config item is set, then the 'GATTC_WRITE_THROUGHPUT' config should be close, it can't test both write or notify at the same time at this demo If this config item is set, then the 'GATTC_WRITE_THROUGHPUT' config should be close, it can't test both
write or notify at the same time at this demo
config GATTC_WRITE_THROUGHPUT config GATTC_WRITE_THROUGHPUT
bool "test the gattc write throughput" bool "test the gattc write throughput"
help help
If this config item is set, then the 'GATTS_NOTIFY_THROUGHPUT' config should be close, it can't test both write or notify at the same time at this demo If this config item is set, then the 'GATTS_NOTIFY_THROUGHPUT' config should be close, it can't test both
write or notify at the same time at this demo
endmenu endmenu

View File

@ -1,12 +1,14 @@
menu "Example 'GATT SERVER' Config" menu "Example 'GATT SERVER' Config"
config SET_RAW_ADV_DATA config SET_RAW_ADV_DATA
bool "Use raw data for advertising packets and scan response data" bool "Use raw data for advertising packets and scan response data"
help help
If this config item is set, raw binary data will be used to generate advertising & scan response data. If this config item is set, raw binary data will be used to generate advertising & scan response data.
This option uses the esp_ble_gap_config_adv_data_raw() and esp_ble_gap_config_scan_rsp_data_raw() functions. This option uses the esp_ble_gap_config_adv_data_raw() and esp_ble_gap_config_scan_rsp_data_raw()
functions.
If this config item is unset, advertising & scan response data is provided via a higher-level esp_ble_adv_data_t structure. If this config item is unset, advertising & scan response data is provided via a higher-level
The lower layer will generate the BLE packets. This option has higher overhead at runtime. esp_ble_adv_data_t structure. The lower layer will generate the BLE packets. This option has higher
overhead at runtime.
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config BLINK_GPIO config BLINK_GPIO
int "Blink GPIO number" int "Blink GPIO number"
range 0 34 range 0 34
default 5 default 5

View File

@ -1,41 +1,41 @@
menu "Example Configuration" menu "Example Configuration"
config MESH_CHANNEL config MESH_CHANNEL
int "channel" int "channel"
range 0 14 range 0 14
default 0 default 0
help help
mesh network channel. mesh network channel.
config MESH_ROUTER_SSID config MESH_ROUTER_SSID
string "Router SSID" string "Router SSID"
default "ROUTER_SSID" default "ROUTER_SSID"
help help
Router SSID. Router SSID.
config MESH_ROUTER_PASSWD config MESH_ROUTER_PASSWD
string "Router password" string "Router password"
default "ROUTER_PASSWD" default "ROUTER_PASSWD"
help help
Router password. Router password.
choice choice
bool "Mesh AP Authentication Mode" bool "Mesh AP Authentication Mode"
default WIFI_AUTH_WPA2_PSK default WIFI_AUTH_WPA2_PSK
help help
Authentication mode. Authentication mode.
config WIFI_AUTH_OPEN config WIFI_AUTH_OPEN
bool "WIFI_AUTH_OPEN" bool "WIFI_AUTH_OPEN"
config WIFI_AUTH_WPA_PSK config WIFI_AUTH_WPA_PSK
bool "WIFI_AUTH_WPA_PSK" bool "WIFI_AUTH_WPA_PSK"
config WIFI_AUTH_WPA2_PSK config WIFI_AUTH_WPA2_PSK
bool "WIFI_AUTH_WPA2_PSK" bool "WIFI_AUTH_WPA2_PSK"
config WIFI_AUTH_WPA_WPA2_PSK config WIFI_AUTH_WPA_WPA2_PSK
bool "WIFI_AUTH_WPA_WPA2_PSK" bool "WIFI_AUTH_WPA_WPA2_PSK"
endchoice endchoice
config MESH_AP_AUTHMODE config MESH_AP_AUTHMODE
int int
default 0 if WIFI_AUTH_OPEN default 0 if WIFI_AUTH_OPEN
default 2 if WIFI_AUTH_WPA_PSK default 2 if WIFI_AUTH_WPA_PSK
@ -44,27 +44,27 @@ config MESH_AP_AUTHMODE
help help
Mesh AP authentication mode. Mesh AP authentication mode.
config MESH_AP_PASSWD config MESH_AP_PASSWD
string "Mesh AP Password" string "Mesh AP Password"
default "MAP_PASSWD" default "MAP_PASSWD"
help help
Mesh AP password. Mesh AP password.
config MESH_AP_CONNECTIONS config MESH_AP_CONNECTIONS
int "Mesh AP Connections" int "Mesh AP Connections"
range 1 10 range 1 10
default 6 default 6
help help
The number of stations allowed to connect in. The number of stations allowed to connect in.
config MESH_MAX_LAYER config MESH_MAX_LAYER
int "Mesh Max Layer" int "Mesh Max Layer"
range 1 25 range 1 25
default 6 default 6
help help
Max layer allowed in mesh network. Max layer allowed in mesh network.
config MESH_ROUTE_TABLE_SIZE config MESH_ROUTE_TABLE_SIZE
int "Mesh Routing Table Size" int "Mesh Routing Table Size"
range 1 300 range 1 300
default 50 default 50

View File

@ -1,41 +1,41 @@
menu "Example Configuration" menu "Example Configuration"
config MESH_CHANNEL config MESH_CHANNEL
int "channel" int "channel"
range 1 14 range 1 14
default 1 default 1
help help
mesh network channel. mesh network channel.
config MESH_ROUTER_SSID config MESH_ROUTER_SSID
string "Router SSID" string "Router SSID"
default "ROUTER_SSID" default "ROUTER_SSID"
help help
Router SSID. Router SSID.
config MESH_ROUTER_PASSWD config MESH_ROUTER_PASSWD
string "Router password" string "Router password"
default "ROUTER_PASSWD" default "ROUTER_PASSWD"
help help
Router password. Router password.
choice choice
bool "Mesh AP Authentication Mode" bool "Mesh AP Authentication Mode"
default WIFI_AUTH_WPA2_PSK default WIFI_AUTH_WPA2_PSK
help help
Authentication mode. Authentication mode.
config WIFI_AUTH_OPEN config WIFI_AUTH_OPEN
bool "WIFI_AUTH_OPEN" bool "WIFI_AUTH_OPEN"
config WIFI_AUTH_WPA_PSK config WIFI_AUTH_WPA_PSK
bool "WIFI_AUTH_WPA_PSK" bool "WIFI_AUTH_WPA_PSK"
config WIFI_AUTH_WPA2_PSK config WIFI_AUTH_WPA2_PSK
bool "WIFI_AUTH_WPA2_PSK" bool "WIFI_AUTH_WPA2_PSK"
config WIFI_AUTH_WPA_WPA2_PSK config WIFI_AUTH_WPA_WPA2_PSK
bool "WIFI_AUTH_WPA_WPA2_PSK" bool "WIFI_AUTH_WPA_WPA2_PSK"
endchoice endchoice
config MESH_AP_AUTHMODE config MESH_AP_AUTHMODE
int int
default 0 if WIFI_AUTH_OPEN default 0 if WIFI_AUTH_OPEN
default 2 if WIFI_AUTH_WPA_PSK default 2 if WIFI_AUTH_WPA_PSK
@ -44,45 +44,45 @@ config MESH_AP_AUTHMODE
help help
Mesh AP authentication mode. Mesh AP authentication mode.
config MESH_AP_PASSWD config MESH_AP_PASSWD
string "Mesh AP Password" string "Mesh AP Password"
default "MAP_PASSWD" default "MAP_PASSWD"
help help
Mesh AP password. Mesh AP password.
config MESH_AP_CONNECTIONS config MESH_AP_CONNECTIONS
int "Mesh AP Connections" int "Mesh AP Connections"
range 1 10 range 1 10
default 6 default 6
help help
The number of stations allowed to connect in. The number of stations allowed to connect in.
config MESH_MAX_LAYER config MESH_MAX_LAYER
int "Mesh Max Layer" int "Mesh Max Layer"
range 1 25 range 1 25
default 6 default 6
help help
Max layer allowed in mesh network. Max layer allowed in mesh network.
config MESH_IE_CRYPTO_KEY config MESH_IE_CRYPTO_KEY
string "Mesh IE Crypto Key" string "Mesh IE Crypto Key"
default "hello, esp-mesh." default "hello, esp-mesh."
help help
Mesh IE ASCII crypto key, length in bytes, range:8~64. Mesh IE ASCII crypto key, length in bytes, range:8~64.
choice choice
bool "Mesh IE Crypto Funcs" bool "Mesh IE Crypto Funcs"
default IE_CRYPTO_ENABLE default IE_CRYPTO_ENABLE
help help
Mesh IE crypto funcs. Mesh IE crypto funcs.
config IE_CRYPTO_ENABLE config IE_CRYPTO_ENABLE
bool "IE_CRYPTO_ENABLE" bool "IE_CRYPTO_ENABLE"
config IE_CRYPTO_DISABLE config IE_CRYPTO_DISABLE
bool "IE_CRYPTO_DISABLE" bool "IE_CRYPTO_DISABLE"
endchoice endchoice
config MESH_IE_CRYPTO_FUNCS config MESH_IE_CRYPTO_FUNCS
int int
default 1 if IE_CRYPTO_ENABLE default 1 if IE_CRYPTO_ENABLE
default 0 if IE_CRYPTO_DISABLE default 0 if IE_CRYPTO_DISABLE

View File

@ -1,34 +1,34 @@
menu "Example Configuration" menu "Example Configuration"
choice ADC2_EXAMPLE_CHANNEL choice ADC2_EXAMPLE_CHANNEL
bool "ADC2 Channel Num" bool "ADC2 Channel Num"
default ADC2_EXAMPLE_CHANNEL_7 default ADC2_EXAMPLE_CHANNEL_7
help help
The channel of ADC2 used in this example. The channel of ADC2 used in this example.
config ADC2_EXAMPLE_CHANNEL_0 config ADC2_EXAMPLE_CHANNEL_0
bool "ADC2 Channel 0 (GPIO 4)" bool "ADC2 Channel 0 (GPIO 4)"
config ADC2_EXAMPLE_CHANNEL_1 config ADC2_EXAMPLE_CHANNEL_1
bool "ADC2 Channel 1 (GPIO 0)" bool "ADC2 Channel 1 (GPIO 0)"
config ADC2_EXAMPLE_CHANNEL_2 config ADC2_EXAMPLE_CHANNEL_2
bool "ADC2 Channel 2 (GPIO 2)" bool "ADC2 Channel 2 (GPIO 2)"
config ADC2_EXAMPLE_CHANNEL_3 config ADC2_EXAMPLE_CHANNEL_3
bool "ADC2 Channel 3 (GPIO 15)" bool "ADC2 Channel 3 (GPIO 15)"
config ADC2_EXAMPLE_CHANNEL_4 config ADC2_EXAMPLE_CHANNEL_4
bool "ADC2 Channel 4 (GPIO 13)" bool "ADC2 Channel 4 (GPIO 13)"
config ADC2_EXAMPLE_CHANNEL_5 config ADC2_EXAMPLE_CHANNEL_5
bool "ADC2 Channel 5 (GPIO 12)" bool "ADC2 Channel 5 (GPIO 12)"
config ADC2_EXAMPLE_CHANNEL_6 config ADC2_EXAMPLE_CHANNEL_6
bool "ADC2 Channel 6 (GPIO 14)" bool "ADC2 Channel 6 (GPIO 14)"
config ADC2_EXAMPLE_CHANNEL_7 config ADC2_EXAMPLE_CHANNEL_7
bool "ADC2 Channel 7 (GPIO 27)" bool "ADC2 Channel 7 (GPIO 27)"
config ADC2_EXAMPLE_CHANNEL_8 config ADC2_EXAMPLE_CHANNEL_8
bool "ADC2 Channel 8 (GPIO 25)" bool "ADC2 Channel 8 (GPIO 25)"
config ADC2_EXAMPLE_CHANNEL_9 config ADC2_EXAMPLE_CHANNEL_9
bool "ADC2 Channel 9 (GPIO 26)" bool "ADC2 Channel 9 (GPIO 26)"
endchoice endchoice
config ADC2_EXAMPLE_CHANNEL config ADC2_EXAMPLE_CHANNEL
int int
default 0 if ADC2_EXAMPLE_CHANNEL_0 default 0 if ADC2_EXAMPLE_CHANNEL_0
default 1 if ADC2_EXAMPLE_CHANNEL_1 default 1 if ADC2_EXAMPLE_CHANNEL_1
@ -41,19 +41,19 @@ config ADC2_EXAMPLE_CHANNEL
default 8 if ADC2_EXAMPLE_CHANNEL_8 default 8 if ADC2_EXAMPLE_CHANNEL_8
default 9 if ADC2_EXAMPLE_CHANNEL_9 default 9 if ADC2_EXAMPLE_CHANNEL_9
choice DAC_EXAMPLE_CHANNEL choice DAC_EXAMPLE_CHANNEL
bool "DAC Channel Num" bool "DAC Channel Num"
default DAC_EXAMPLE_CHANNEL_1 default DAC_EXAMPLE_CHANNEL_1
help help
The channel of DAC used in this example. The channel of DAC used in this example.
config DAC_EXAMPLE_CHANNEL_1 config DAC_EXAMPLE_CHANNEL_1
bool "DAC Channel 1 (GPIO25)" bool "DAC Channel 1 (GPIO25)"
config DAC_EXAMPLE_CHANNEL_2 config DAC_EXAMPLE_CHANNEL_2
bool "DAC Channel 2 (GPIO26)" bool "DAC Channel 2 (GPIO26)"
endchoice endchoice
config DAC_EXAMPLE_CHANNEL config DAC_EXAMPLE_CHANNEL
int int
default 1 if DAC_EXAMPLE_CHANNEL_1 default 1 if DAC_EXAMPLE_CHANNEL_1
default 2 if DAC_EXAMPLE_CHANNEL_2 default 2 if DAC_EXAMPLE_CHANNEL_2

View File

@ -1,116 +1,116 @@
menu "Example Configuration" menu "Example Configuration"
menu "I2C Master" menu "I2C Master"
config I2C_MASTER_SCL config I2C_MASTER_SCL
int "SCL GPIO Num" int "SCL GPIO Num"
default 19 default 19
help help
GPIO number for I2C Master clock line. GPIO number for I2C Master clock line.
config I2C_MASTER_SDA config I2C_MASTER_SDA
int "SDA GPIO Num" int "SDA GPIO Num"
default 18 default 18
help help
GPIO number for I2C Master data line. GPIO number for I2C Master data line.
config I2C_MASTER_PORT_NUM config I2C_MASTER_PORT_NUM
int "Port Number" int "Port Number"
default 1 default 1
help help
Port number for I2C Master device. Port number for I2C Master device.
config I2C_MASTER_FREQUENCY config I2C_MASTER_FREQUENCY
int "Master Frequency" int "Master Frequency"
default 100000 default 100000
help help
I2C Speed of Master device. I2C Speed of Master device.
endmenu endmenu
menu "I2C Slave" menu "I2C Slave"
config I2C_SLAVE_SCL config I2C_SLAVE_SCL
int "SCL GPIO Num" int "SCL GPIO Num"
default 26 default 26
help help
GPIO number for I2C Slave clock line. GPIO number for I2C Slave clock line.
config I2C_SLAVE_SDA config I2C_SLAVE_SDA
int "SDA GPIO Num" int "SDA GPIO Num"
default 25 default 25
help help
GPIO number for I2C Slave data line. GPIO number for I2C Slave data line.
config I2C_SLAVE_PORT_NUM config I2C_SLAVE_PORT_NUM
int "Port Number" int "Port Number"
default 0 default 0
help help
Port number for I2C Slave device. Port number for I2C Slave device.
config I2C_SLAVE_ADDRESS config I2C_SLAVE_ADDRESS
hex "ESP Slave Address" hex "ESP Slave Address"
default 0x28 default 0x28
help help
Hardware Address of I2C Slave Port. Hardware Address of I2C Slave Port.
endmenu endmenu
menu "BH1750 Sensor" menu "BH1750 Sensor"
choice BH1750_ADDR choice BH1750_ADDR
prompt "BH1750 I2C Address" prompt "BH1750 I2C Address"
default BH1750_I2C_ADDRESS_LOW default BH1750_I2C_ADDRESS_LOW
help help
Hardware address of BH1750, which is 2 types, and determined by ADDR terminal. Hardware address of BH1750, which is 2 types, and determined by ADDR terminal.
config BH1750_I2C_ADDRESS_LOW config BH1750_I2C_ADDRESS_LOW
bool "BH1750 I2C Address(ADDR=0)" bool "BH1750 I2C Address(ADDR=0)"
help help
I2C Address of BH1750 Sensor according to your schemetic configuration. I2C Address of BH1750 Sensor according to your schemetic configuration.
config BH1750_I2C_ADDRESS_High config BH1750_I2C_ADDRESS_High
bool "BH1750 I2C Address(ADDR=1)" bool "BH1750 I2C Address(ADDR=1)"
help help
I2C Address of BH1750 Sensor according to your schemetic configuration. I2C Address of BH1750 Sensor according to your schemetic configuration.
endchoice endchoice
config BH1750_ADDR config BH1750_ADDR
hex hex
default 0x5C if BH1750_I2C_ADDRESS_High default 0x5C if BH1750_I2C_ADDRESS_High
default 0x23 if BH1750_I2C_ADDRESS_LOW default 0x23 if BH1750_I2C_ADDRESS_LOW
choice BH1750_MODE choice BH1750_MODE
prompt "BH1750 Operation Mode" prompt "BH1750 Operation Mode"
default BH1750_ONETIME_L_RESOLUTION default BH1750_ONETIME_L_RESOLUTION
help help
Operation Mode of BH1750. Operation Mode of BH1750.
Different mode means different resolution and measurement time. Different mode means different resolution and measurement time.
config BH1750_CONTINU_H_RESOLUTION config BH1750_CONTINU_H_RESOLUTION
bool "Continuously H-Resolution Mode" bool "Continuously H-Resolution Mode"
help help
Resolution is 1lx, measurement time is typically 120ms. Resolution is 1lx, measurement time is typically 120ms.
config BH1750_CONTINU_H_RESOLUTION2 config BH1750_CONTINU_H_RESOLUTION2
bool "Continuously H-Resolution Mode2" bool "Continuously H-Resolution Mode2"
help help
Resolution is 0.5lx, measurement time is typically 120ms. Resolution is 0.5lx, measurement time is typically 120ms.
config BH1750_CONTINU_L_RESOLUTION config BH1750_CONTINU_L_RESOLUTION
bool "Continuously L-Resolution Mode" bool "Continuously L-Resolution Mode"
help help
Resolution is 4lx, measurement time is typically 16ms. Resolution is 4lx, measurement time is typically 16ms.
config BH1750_ONETIME_H_RESOLUTION config BH1750_ONETIME_H_RESOLUTION
bool "One Time H-Resolution Mode" bool "One Time H-Resolution Mode"
help help
Resolution is 1lx, measurement time is typically 120ms. Resolution is 1lx, measurement time is typically 120ms.
It is automatically set to Power Down mode after measurement. It is automatically set to Power Down mode after measurement.
config BH1750_ONETIME_H_RESOLUTION2 config BH1750_ONETIME_H_RESOLUTION2
bool "One Time H-Resolution Mode2" bool "One Time H-Resolution Mode2"
help help
Resolution is 0.5lx, measurement time is typically 120ms. Resolution is 0.5lx, measurement time is typically 120ms.
It is automatically set to Power Down mode after measurement. It is automatically set to Power Down mode after measurement.
config BH1750_ONETIME_L_RESOLUTION config BH1750_ONETIME_L_RESOLUTION
bool "One Time L-Resolution Mode" bool "One Time L-Resolution Mode"
help help
Resolution is 4lx, measurement time is typically 16ms. Resolution is 4lx, measurement time is typically 16ms.
It is automatically set to Power Down mode after measurement. It is automatically set to Power Down mode after measurement.
endchoice endchoice
config BH1750_OPMODE config BH1750_OPMODE
hex hex
default 0x10 if BH1750_CONTINU_H_RESOLUTION default 0x10 if BH1750_CONTINU_H_RESOLUTION
default 0x11 if BH1750_CONTINU_H_RESOLUTION2 default 0x11 if BH1750_CONTINU_H_RESOLUTION2
@ -119,6 +119,6 @@ config BH1750_OPMODE
default 0x21 if BH1750_ONETIME_H_RESOLUTION2 default 0x21 if BH1750_ONETIME_H_RESOLUTION2
default 0x23 if BH1750_ONETIME_L_RESOLUTION default 0x23 if BH1750_ONETIME_L_RESOLUTION
endmenu endmenu
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config STORE_HISTORY config STORE_HISTORY
bool "Store command history in flash" bool "Store command history in flash"
default y default y
help help
@ -8,14 +8,14 @@ config STORE_HISTORY
command history. If this option is enabled, initalizes a FAT filesystem command history. If this option is enabled, initalizes a FAT filesystem
and uses it to store command history. and uses it to store command history.
config MAX_CMD_ARGUMENTS config MAX_CMD_ARGUMENTS
int "Maximum number of command line arguments" int "Maximum number of command line arguments"
default 16 default 16
range 8 256 range 8 256
help help
maximum number of command line arguments to parse maximum number of command line arguments to parse
config MAX_CMD_LENGTH config MAX_CMD_LENGTH
int "Command line buffer length" int "Command line buffer length"
default 256 default 256
range 256 512 range 256 512

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config SDIO_EXAMPLE_4BIT config SDIO_EXAMPLE_4BIT
bool "Host tries using 4-bit mode to communicate with slave" bool "Host tries using 4-bit mode to communicate with slave"
default n default n
help help
@ -13,7 +13,7 @@ config SDIO_EXAMPLE_4BIT
Note that 4-bit mode is not compatible (by default) if the slave is Note that 4-bit mode is not compatible (by default) if the slave is
using 3.3V flash which requires a pull-down on the MTDI pin. using 3.3V flash which requires a pull-down on the MTDI pin.
config SDIO_EXAMPLE_HIGHSPEED config SDIO_EXAMPLE_HIGHSPEED
bool "Host tries using HS mode to communicate with slave" bool "Host tries using HS mode to communicate with slave"
default y default y
help help
@ -24,20 +24,20 @@ config SDIO_EXAMPLE_HIGHSPEED
If the example does not work, please try disabling the HS mode. If the example does not work, please try disabling the HS mode.
choice EXAMPLE_SLAVE choice EXAMPLE_SLAVE
prompt "Id of Slave used in Espressif master-slave board." prompt "Id of Slave used in Espressif master-slave board."
default EXAMPLE_SLAVE_NONE default EXAMPLE_SLAVE_NONE
help help
If Espressif master-slave board is used, select which slave is used. If Espressif master-slave board is used, select which slave is used.
config EXAMPLE_SLAVE_NONE config EXAMPLE_SLAVE_NONE
bool "Not using Espressif master-slave board." bool "Not using Espressif master-slave board."
config EXAMPLE_SLAVE_B1 config EXAMPLE_SLAVE_B1
bool "Using slave B1" bool "Using slave B1"
config EXAMPLE_SLAVE_B2 config EXAMPLE_SLAVE_B2
bool "Using slave B2" bool "Using slave B2"
config EXAMPLE_SLAVE_B3 config EXAMPLE_SLAVE_B3
bool "Using slave B3" bool "Using slave B3"
endchoice endchoice
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config SDIO_DAT2_DISABLED config SDIO_DAT2_DISABLED
bool "Disable the DAT2 in SDIO slave" bool "Disable the DAT2 in SDIO slave"
default y default y
help help

View File

@ -1,20 +1,20 @@
menu "Example Configuration" menu "Example Configuration"
choice LCD_TYPE choice LCD_TYPE
prompt "LCD module type" prompt "LCD module type"
default LCD_TYPE_AUTO default LCD_TYPE_AUTO
help help
The type of LCD on the evaluation board. The type of LCD on the evaluation board.
config LCD_TYPE_AUTO config LCD_TYPE_AUTO
bool "Auto detect" bool "Auto detect"
config LCD_TYPE_ST7789V config LCD_TYPE_ST7789V
bool "ST7789V (WROVER Kit v2 or v3)" bool "ST7789V (WROVER Kit v2 or v3)"
config LCD_TYPE_ILI9341 config LCD_TYPE_ILI9341
bool "ILI9341 (WROVER Kit v1 or DevKitJ v1)" bool "ILI9341 (WROVER Kit v1 or DevKitJ v1)"
endchoice endchoice
config LCD_OVERCLOCK config LCD_OVERCLOCK
bool bool
prompt "Run LCD at higher clock speed than allowed" prompt "Run LCD at higher clock speed than allowed"
default "n" default "n"

View File

@ -1,29 +1,29 @@
menu "Example Configuration" menu "Example Configuration"
config NMEA_PARSER_RING_BUFFER_SIZE config NMEA_PARSER_RING_BUFFER_SIZE
int "NMEA Parser Ring Buffer Size" int "NMEA Parser Ring Buffer Size"
range 0 2048 range 0 2048
default 1024 default 1024
help help
Size of the ring buffer used for UART Rx channel. Size of the ring buffer used for UART Rx channel.
config NMEA_PARSER_TASK_STACK_SIZE config NMEA_PARSER_TASK_STACK_SIZE
int "NMEA Parser Task Stack Size" int "NMEA Parser Task Stack Size"
range 0 4096 range 0 4096
default 2048 default 2048
help help
Stack size of NMEA Parser task. Stack size of NMEA Parser task.
config NMEA_PARSER_TASK_PRIORITY config NMEA_PARSER_TASK_PRIORITY
int "NMEA Parser Task Priority" int "NMEA Parser Task Priority"
range 0 24 range 0 24
default 2 default 2
help help
Priority of NMEA Parser task. Priority of NMEA Parser task.
menu "NMEA Statement Support" menu "NMEA Statement Support"
comment "At least one statement must be selected" comment "At least one statement must be selected"
config NMEA_STATEMENT_GGA config NMEA_STATEMENT_GGA
bool "GGA Statement" bool "GGA Statement"
default y default y
help help
@ -32,7 +32,7 @@ config NMEA_STATEMENT_GGA
- Latitude, Longitude, Altitude; - Latitude, Longitude, Altitude;
- Number of satellites in use, fix status (no fix, GPS, DGPS), UTC time; - Number of satellites in use, fix status (no fix, GPS, DGPS), UTC time;
config NMEA_STATEMENT_GSA config NMEA_STATEMENT_GSA
bool "GSA Statement" bool "GSA Statement"
default y default y
help help
@ -42,7 +42,7 @@ config NMEA_STATEMENT_GSA
- Fix mode (no fix, 2D, 3D fix); - Fix mode (no fix, 2D, 3D fix);
- IDs of satellites in use; - IDs of satellites in use;
config NMEA_STATEMENT_GSV config NMEA_STATEMENT_GSV
bool "GSV Statement" bool "GSV Statement"
default y default y
help help
@ -51,7 +51,7 @@ config NMEA_STATEMENT_GSV
- Number of satellites in view; - Number of satellites in view;
- Optional details of each satellite in view; - Optional details of each satellite in view;
config NMEA_STATEMENT_RMC config NMEA_STATEMENT_RMC
bool "RMC Statement" bool "RMC Statement"
default y default y
help help
@ -62,7 +62,7 @@ config NMEA_STATEMENT_RMC
- Magnetic variation; - Magnetic variation;
- UTC date; - UTC date;
config NMEA_STATEMENT_GLL config NMEA_STATEMENT_GLL
bool "GLL Statement" bool "GLL Statement"
default y default y
help help
@ -71,7 +71,7 @@ config NMEA_STATEMENT_GLL
- Latitude, Longitude; - Latitude, Longitude;
- UTC time; - UTC time;
config NMEA_STATEMENT_VTG config NMEA_STATEMENT_VTG
bool "VTG Statement" bool "VTG Statement"
default y default y
help help
@ -80,6 +80,6 @@ config NMEA_STATEMENT_VTG
- Ground speed (knots, km/h) and course over ground (degrees); - Ground speed (knots, km/h) and course over ground (degrees);
- Magnetic variation; - Magnetic variation;
endmenu endmenu
endmenu endmenu

View File

@ -1,27 +1,28 @@
menu "Example Configuration" menu "Example Configuration"
config ESP_WIFI_SSID config ESP_WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config ESP_WIFI_PASSWORD config ESP_WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config EXAMPLE_PORT config EXAMPLE_PORT
string "asio example port number" string "asio example port number"
default "2222" default "2222"
help help
Port number used by ASIO example Port number used by ASIO example
config EXAMPLE_SERVER_IP config EXAMPLE_SERVER_IP
string "asio example server ip for this client to connect to (leave defalut=FROM_STDIN to enter the server address via serial terminal)" string "asio example server ip"
default "FROM_STDIN" default "FROM_STDIN"
help help
Please set the host name or ip address of corespondant server running asio example server ip for this client to connect to (leave default=FROM_STDIN to enter the server address
via serial terminal).
endmenu endmenu

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config ESP_WIFI_SSID config ESP_WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config ESP_WIFI_PASSWORD config ESP_WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config EXAMPLE_PORT config EXAMPLE_PORT
string "asio example port number" string "asio example port number"
default "80" default "80"
help help

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config ESP_WIFI_SSID config ESP_WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config ESP_WIFI_PASSWORD config ESP_WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config EXAMPLE_PORT config EXAMPLE_PORT
string "asio example port number" string "asio example port number"
default "80" default "80"
help help

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config ESP_WIFI_SSID config ESP_WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config ESP_WIFI_PASSWORD config ESP_WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config EXAMPLE_PORT config EXAMPLE_PORT
string "asio example port number" string "asio example port number"
default "80" default "80"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
@ -14,13 +14,13 @@ config WIFI_PASSWORD
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
config AWS_EXAMPLE_CLIENT_ID config AWS_EXAMPLE_CLIENT_ID
string "AWS IoT Client ID" string "AWS IoT Client ID"
default "myesp32" default "myesp32"
help help
AWS IoT Client ID for the example. Should be unique for every device. AWS IoT Client ID for the example. Should be unique for every device.
choice EXAMPLE_CERT_SOURCE choice EXAMPLE_CERT_SOURCE
prompt "AWS IoT Certificate Source" prompt "AWS IoT Certificate Source"
default EXAMPLE_EMBEDDED_CERTS default EXAMPLE_EMBEDDED_CERTS
help help
@ -28,31 +28,31 @@ choice EXAMPLE_CERT_SOURCE
and a common Root CA Certificate. These can be compiled into the example and a common Root CA Certificate. These can be compiled into the example
app, or they can be loaded via the filesystem from an SD card. app, or they can be loaded via the filesystem from an SD card.
config EXAMPLE_EMBEDDED_CERTS config EXAMPLE_EMBEDDED_CERTS
bool "Embed into app" bool "Embed into app"
config EXAMPLE_SDCARD_CERTS config EXAMPLE_SDCARD_CERTS
bool "Load from SD card" bool "Load from SD card"
select EXAMPLE_FILESYSTEM_CERTS select EXAMPLE_FILESYSTEM_CERTS
endchoice endchoice
# Currently this is equivalent to EXAMPLE_SDCARD_CERTS, # Currently this is equivalent to EXAMPLE_SDCARD_CERTS,
# however eventually we want to support more filesystem # however eventually we want to support more filesystem
# sources (SPIFFS, etc.) So this hidden config item # sources (SPIFFS, etc.) So this hidden config item
# is selected whenever the item should load from filesystem. # is selected whenever the item should load from filesystem.
config EXAMPLE_FILESYSTEM_CERTS config EXAMPLE_FILESYSTEM_CERTS
bool bool
config EXAMPLE_CERTIFICATE_PATH config EXAMPLE_CERTIFICATE_PATH
string "Device Certificate Path" string "Device Certificate Path"
depends on EXAMPLE_FILESYSTEM_CERTS depends on EXAMPLE_FILESYSTEM_CERTS
default "/sdcard/certificate.pem.crt" default "/sdcard/certificate.pem.crt"
config EXAMPLE_PRIVATE_KEY_PATH config EXAMPLE_PRIVATE_KEY_PATH
string "Device Private Key Path" string "Device Private Key Path"
depends on EXAMPLE_FILESYSTEM_CERTS depends on EXAMPLE_FILESYSTEM_CERTS
default "/sdcard/private.pem.key" default "/sdcard/private.pem.key"
config EXAMPLE_ROOT_CA_PATH config EXAMPLE_ROOT_CA_PATH
string "Root CA Certificate Path" string "Root CA Certificate Path"
depends on EXAMPLE_FILESYSTEM_CERTS depends on EXAMPLE_FILESYSTEM_CERTS
default "/sdcard/aws-root-ca.pem" default "/sdcard/aws-root-ca.pem"

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
@ -14,19 +14,19 @@ config WIFI_PASSWORD
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
config AWS_EXAMPLE_CLIENT_ID config AWS_EXAMPLE_CLIENT_ID
string "AWS IoT Client ID" string "AWS IoT Client ID"
default "myesp32" default "myesp32"
help help
AWS IoT Client ID for the example. Should be unique for every device. AWS IoT Client ID for the example. Should be unique for every device.
config AWS_EXAMPLE_THING_NAME config AWS_EXAMPLE_THING_NAME
string "AWS IoT Thing Name" string "AWS IoT Thing Name"
default "myesp32" default "myesp32"
help help
AWS IoT Thing Name for the example. Should be unique for every device. AWS IoT Thing Name for the example. Should be unique for every device.
choice EXAMPLE_CERT_SOURCE choice EXAMPLE_CERT_SOURCE
prompt "AWS IoT Certificate Source" prompt "AWS IoT Certificate Source"
default EXAMPLE_EMBEDDED_CERTS default EXAMPLE_EMBEDDED_CERTS
help help
@ -34,31 +34,31 @@ choice EXAMPLE_CERT_SOURCE
and a common Root CA Certificate. These can be compiled into the example and a common Root CA Certificate. These can be compiled into the example
app, or they can be loaded via the filesystem from an SD card. app, or they can be loaded via the filesystem from an SD card.
config EXAMPLE_EMBEDDED_CERTS config EXAMPLE_EMBEDDED_CERTS
bool "Embed into app" bool "Embed into app"
config EXAMPLE_SDCARD_CERTS config EXAMPLE_SDCARD_CERTS
bool "Load from SD card" bool "Load from SD card"
select EXAMPLE_FILESYSTEM_CERTS select EXAMPLE_FILESYSTEM_CERTS
endchoice endchoice
# Currently this is equivalent to EXAMPLE_SDCARD_CERTS, # Currently this is equivalent to EXAMPLE_SDCARD_CERTS,
# however eventually we want to support more filesystem # however eventually we want to support more filesystem
# sources (SPIFFS, etc.) So this hidden config item # sources (SPIFFS, etc.) So this hidden config item
# is selected whenever the item should load from filesystem. # is selected whenever the item should load from filesystem.
config EXAMPLE_FILESYSTEM_CERTS config EXAMPLE_FILESYSTEM_CERTS
bool bool
config EXAMPLE_CERTIFICATE_PATH config EXAMPLE_CERTIFICATE_PATH
string "Device Certificate Path" string "Device Certificate Path"
depends on EXAMPLE_FILESYSTEM_CERTS depends on EXAMPLE_FILESYSTEM_CERTS
default "/sdcard/certificate.pem.crt" default "/sdcard/certificate.pem.crt"
config EXAMPLE_PRIVATE_KEY_PATH config EXAMPLE_PRIVATE_KEY_PATH
string "Device Private Key Path" string "Device Private Key Path"
depends on EXAMPLE_FILESYSTEM_CERTS depends on EXAMPLE_FILESYSTEM_CERTS
default "/sdcard/private.pem.key" default "/sdcard/private.pem.key"
config EXAMPLE_ROOT_CA_PATH config EXAMPLE_ROOT_CA_PATH
string "Root CA Certificate Path" string "Root CA Certificate Path"
depends on EXAMPLE_FILESYSTEM_CERTS depends on EXAMPLE_FILESYSTEM_CERTS
default "/sdcard/aws-root-ca.pem" default "/sdcard/aws-root-ca.pem"

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config TARGET_DOMAIN_URI config TARGET_DOMAIN_URI
string "Target Uri" string "Target Uri"
default "coap://californium.eclipse.org" default "coap://californium.eclipse.org"
help help
Target uri for the example to use. Target uri for the example to use.
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
@ -14,19 +14,19 @@ config WIFI_PASSWORD
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
config MDNS_HOSTNAME config MDNS_HOSTNAME
string "mDNS Hostname" string "mDNS Hostname"
default "esp32-mdns" default "esp32-mdns"
help help
mDNS Hostname for example to use mDNS Hostname for example to use
config MDNS_INSTANCE config MDNS_INSTANCE
string "mDNS Instance Name" string "mDNS Instance Name"
default "ESP32 with mDNS" default "ESP32 with mDNS"
help help
mDNS Instance Name for example to use mDNS Instance Name for example to use
config RESOLVE_TEST_SERVICES config RESOLVE_TEST_SERVICES
bool "Resolve test services" bool "Resolve test services"
default y default y
help help

View File

@ -1,6 +1,6 @@
menu "Modbus Slave Example Configuration" menu "Modbus Slave Example Configuration"
config MB_UART_RXD config MB_UART_RXD
int "UART RXD pin number" int "UART RXD pin number"
range 0 34 range 0 34
default 22 default 22
@ -8,7 +8,7 @@ config MB_UART_RXD
GPIO number for UART RX pin. See UART documentation for more information GPIO number for UART RX pin. See UART documentation for more information
about available pin numbers for UART. about available pin numbers for UART.
config MB_UART_TXD config MB_UART_TXD
int "UART TXD pin number" int "UART TXD pin number"
range 0 34 range 0 34
default 23 default 23
@ -16,7 +16,7 @@ config MB_UART_TXD
GPIO number for UART TX pin. See UART documentation for more information GPIO number for UART TX pin. See UART documentation for more information
about available pin numbers for UART. about available pin numbers for UART.
config MB_UART_RTS config MB_UART_RTS
int "UART RTS pin number" int "UART RTS pin number"
range 0 34 range 0 34
default 18 default 18

View File

@ -1,30 +1,31 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config BROKER_URI config BROKER_URI
string "Broker URL" string "Broker URL"
default "mqtts://iot.eclipse.org:8883" default "mqtts://iot.eclipse.org:8883"
help help
URL of an mqtt broker which this example connects to. URL of an mqtt broker which this example connects to.
config BROKER_CERTIFICATE_OVERRIDE config BROKER_CERTIFICATE_OVERRIDE
string "Broker certificate override" string "Broker certificate override"
default "" default ""
help help
Please leave empty if broker certificate included from a textfile; otherwise fill in a base64 part of PEM format certificate Please leave empty if broker certificate included from a textfile; otherwise fill in a base64 part of PEM
format certificate
config BROKER_CERTIFICATE_OVERRIDDEN config BROKER_CERTIFICATE_OVERRIDDEN
bool bool
default y if BROKER_CERTIFICATE_OVERRIDE != "" default y if BROKER_CERTIFICATE_OVERRIDE != ""

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,24 +1,24 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config BROKER_URL config BROKER_URL
string "Broker URL" string "Broker URL"
default "mqtt://iot.eclipse.org" default "mqtt://iot.eclipse.org"
help help
URL of the broker to connect to URL of the broker to connect to
config BROKER_URL_FROM_STDIN config BROKER_URL_FROM_STDIN
bool bool
default y if BROKER_URL = "FROM_STDIN" default y if BROKER_URL = "FROM_STDIN"

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config BROKER_URI config BROKER_URI
string "Broker URL" string "Broker URL"
default "ws://iot.eclipse.org:80/ws" default "ws://iot.eclipse.org:80/ws"
help help

View File

@ -1,30 +1,31 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config BROKER_URI config BROKER_URI
string "Broker URL" string "Broker URL"
default "wss://iot.eclipse.org:443/ws" default "wss://iot.eclipse.org:443/ws"
help help
URL of an mqtt broker which this example connects to. URL of an mqtt broker which this example connects to.
config BROKER_CERTIFICATE_OVERRIDE config BROKER_CERTIFICATE_OVERRIDE
string "Server certificate override" string "Server certificate override"
default "" default ""
help help
Please leave empty if server certificate included from a textfile; otherwise fill in a base64 part of PEM format certificate Please leave empty if server certificate included from a textfile; otherwise fill in a base64 part of PEM
format certificate
config BROKER_CERTIFICATE_OVERRIDDEN config BROKER_CERTIFICATE_OVERRIDDEN
bool bool
default y if BROKER_CERTIFICATE_OVERRIDE != "" default y if BROKER_CERTIFICATE_OVERRIDE != ""

View File

@ -1,25 +1,25 @@
menu "Example Configuration" menu "Example Configuration"
config TARGET_DOMAIN config TARGET_DOMAIN
string "Target Domain" string "Target Domain"
default "www.baidu.com" default "www.baidu.com"
help help
Target domain for the example to connect to. Target domain for the example to connect to.
config TARGET_PORT_NUMBER config TARGET_PORT_NUMBER
int "Target port number" int "Target port number"
range 0 65535 range 0 65535
default 443 default 443
help help
Target port number for the example to connect to. Target port number for the example to connect to.
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help

View File

@ -1,46 +1,46 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
choice EXAMPLE_IP_MODE choice EXAMPLE_IP_MODE
prompt "IP Version" prompt "IP Version"
help help
Example can use either IPV4 or IPV6. Example can use either IPV4 or IPV6.
config EXAMPLE_IPV4 config EXAMPLE_IPV4
bool "IPV4" bool "IPV4"
config EXAMPLE_IPV6 config EXAMPLE_IPV6
bool "IPV6" bool "IPV6"
endchoice endchoice
config EXAMPLE_IPV4_ADDR config EXAMPLE_IPV4_ADDR
string "IPV4 Address" string "IPV4 Address"
default "192.168.0.165" default "192.168.0.165"
depends on EXAMPLE_IPV4 depends on EXAMPLE_IPV4
help help
The example will connect to this IPV4 address. The example will connect to this IPV4 address.
config EXAMPLE_IPV6_ADDR config EXAMPLE_IPV6_ADDR
string "IPV6 Address" string "IPV6 Address"
default "FE80::30AD:E57B:C212:68AD" default "FE80::30AD:E57B:C212:68AD"
depends on EXAMPLE_IPV6 depends on EXAMPLE_IPV6
help help
The example will connect to this IPV6 address. The example will connect to this IPV6 address.
config EXAMPLE_PORT config EXAMPLE_PORT
int "Port" int "Port"
range 0 65535 range 0 65535
default 3333 default 3333

View File

@ -1,32 +1,32 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
choice EXAMPLE_IP_MODE choice EXAMPLE_IP_MODE
prompt "IP Version" prompt "IP Version"
help help
Example can use either IPV4 or IPV6. Example can use either IPV4 or IPV6.
config EXAMPLE_IPV4 config EXAMPLE_IPV4
bool "IPV4" bool "IPV4"
config EXAMPLE_IPV6 config EXAMPLE_IPV6
bool "IPV6" bool "IPV6"
endchoice endchoice
config EXAMPLE_PORT config EXAMPLE_PORT
int "Port" int "Port"
range 0 65535 range 0 65535
default 3333 default 3333

View File

@ -1,46 +1,46 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
choice EXAMPLE_IP_MODE choice EXAMPLE_IP_MODE
prompt "IP Version" prompt "IP Version"
help help
Example can use either IPV4 or IPV6. Example can use either IPV4 or IPV6.
config EXAMPLE_IPV4 config EXAMPLE_IPV4
bool "IPV4" bool "IPV4"
config EXAMPLE_IPV6 config EXAMPLE_IPV6
bool "IPV6" bool "IPV6"
endchoice endchoice
config EXAMPLE_IPV4_ADDR config EXAMPLE_IPV4_ADDR
string "IPV4 Address" string "IPV4 Address"
default "192.168.0.165" default "192.168.0.165"
depends on EXAMPLE_IPV4 depends on EXAMPLE_IPV4
help help
IPV4 address to which the client example will send data. IPV4 address to which the client example will send data.
config EXAMPLE_IPV6_ADDR config EXAMPLE_IPV6_ADDR
string "IPV6 Address" string "IPV6 Address"
default "FE80::30AD:E57B:C212:68AD" default "FE80::30AD:E57B:C212:68AD"
depends on EXAMPLE_IPV6 depends on EXAMPLE_IPV6
help help
IPV6 address to which the client example will send data. IPV6 address to which the client example will send data.
config EXAMPLE_PORT config EXAMPLE_PORT
int "Port" int "Port"
range 0 65535 range 0 65535
default 3333 default 3333

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
@ -14,78 +14,79 @@ config WIFI_PASSWORD
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
choice EXAMPLE_IP_MODE choice EXAMPLE_IP_MODE
prompt "Multicast IP type" prompt "Multicast IP type"
help help
Example can multicast IPV4, IPV6, or both. Example can multicast IPV4, IPV6, or both.
config EXAMPLE_IPV4_V6 config EXAMPLE_IPV4_V6
bool "IPV4 & IPV6" bool "IPV4 & IPV6"
select EXAMPLE_IPV4 select EXAMPLE_IPV4
select EXAMPLE_IPV6 select EXAMPLE_IPV6
config EXAMPLE_IPV4_ONLY config EXAMPLE_IPV4_ONLY
bool "IPV4" bool "IPV4"
select EXAMPLE_IPV4 select EXAMPLE_IPV4
config EXAMPLE_IPV6_ONLY config EXAMPLE_IPV6_ONLY
bool "IPV6" bool "IPV6"
select EXAMPLE_IPV6 select EXAMPLE_IPV6
endchoice endchoice
config EXAMPLE_IPV4 config EXAMPLE_IPV4
bool bool
config EXAMPLE_IPV6 config EXAMPLE_IPV6
bool bool
config EXAMPLE_MULTICAST_IPV4_ADDR config EXAMPLE_MULTICAST_IPV4_ADDR
string "Multicast IPV4 Address (send & receive)" string "Multicast IPV4 Address (send & receive)"
default "232.10.11.12" default "232.10.11.12"
depends on EXAMPLE_IPV4 depends on EXAMPLE_IPV4
help help
IPV4 multicast address. Example will both send to and listen to this address. IPV4 multicast address. Example will both send to and listen to this address.
config EXAMPLE_MULTICAST_IPV6_ADDR config EXAMPLE_MULTICAST_IPV6_ADDR
string "Multicast IPV6 Address (send & receive)" string "Multicast IPV6 Address (send & receive)"
default "FF02::FC" default "FF02::FC"
depends on EXAMPLE_IPV6 depends on EXAMPLE_IPV6
help help
IPV6 multicast address. Example will both send to and listen to this address. IPV6 multicast address. Example will both send to and listen to this address.
The default FF02::FC address is a link-local multicast address. Consult IPV6 specifications or documentation for information about meaning of different IPV6 multicast ranges. The default FF02::FC address is a link-local multicast address. Consult IPV6 specifications or
documentation for information about meaning of different IPV6 multicast ranges.
config EXAMPLE_PORT config EXAMPLE_PORT
int "Multicast port (send & receive)" int "Multicast port (send & receive)"
range 0 65535 range 0 65535
default 3333 default 3333
help help
Multicast port the example will both send & receive UDP packets on. Multicast port the example will both send & receive UDP packets on.
config EXAMPLE_LOOPBACK config EXAMPLE_LOOPBACK
bool "Multicast loopback" bool "Multicast loopback"
help help
Enables IP_MULTICAST_LOOP/IPV6_MULTICAST_LOOP options, meaning Enables IP_MULTICAST_LOOP/IPV6_MULTICAST_LOOP options, meaning
that packets transmitted from the device are also received by the that packets transmitted from the device are also received by the
device itself. device itself.
config EXAMPLE_MULTICAST_TTL config EXAMPLE_MULTICAST_TTL
int "Multicast packet TTL" int "Multicast packet TTL"
range 1 255 range 1 255
help help
Sets TTL field of multicast packets. Separate from uni- & broadcast TTL. Sets TTL field of multicast packets. Separate from uni- & broadcast TTL.
choice EXAMPLE_MULTICAST_IF choice EXAMPLE_MULTICAST_IF
prompt "Multicast Interface" prompt "Multicast Interface"
help help
Multicast socket can bind to default interface, or all interfaces. Multicast socket can bind to default interface, or all interfaces.
config EXAMPLE_MULTICAST_LISTEN_DEFAULT_IF config EXAMPLE_MULTICAST_LISTEN_DEFAULT_IF
bool "Default interface" bool "Default interface"
config EXAMPLE_MULTICAST_LISTEN_STA_IF config EXAMPLE_MULTICAST_LISTEN_STA_IF
bool "WiFi STA interface" bool "WiFi STA interface"
endchoice endchoice
endmenu endmenu

View File

@ -1,32 +1,32 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
choice EXAMPLE_IP_MODE choice EXAMPLE_IP_MODE
prompt "IP Version" prompt "IP Version"
help help
Example can use either IPV4 or IPV6. Example can use either IPV4 or IPV6.
config EXAMPLE_IPV4 config EXAMPLE_IPV4
bool "IPV4" bool "IPV4"
config EXAMPLE_IPV6 config EXAMPLE_IPV6
bool "IPV6" bool "IPV6"
endchoice endchoice
config EXAMPLE_PORT config EXAMPLE_PORT
int "Port" int "Port"
range 0 65535 range 0 65535
default 3333 default 3333

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config USE_SEC_1 config USE_SEC_1
bool bool
default y default y
prompt "Use Security Version 1" prompt "Use Security Version 1"
@ -8,7 +8,7 @@ config USE_SEC_1
Security version 1 used Curve25519 key exchange for establishing Security version 1 used Curve25519 key exchange for establishing
secure session between device and client during provisioning secure session between device and client during provisioning
config USE_POP config USE_POP
bool bool
depends on USE_SEC_1 depends on USE_SEC_1
default y default y
@ -18,12 +18,12 @@ config USE_POP
in possession of the user who is provisioning the device. This proof-of-possession in possession of the user who is provisioning the device. This proof-of-possession
is internally used to generate the shared secret through key exchange. is internally used to generate the shared secret through key exchange.
config POP config POP
string "Proof-of-possession" string "Proof-of-possession"
default "abcd1234" default "abcd1234"
depends on USE_POP depends on USE_POP
config RESET_PROVISIONED config RESET_PROVISIONED
bool bool
default n default n
prompt "Reset provisioned status of the device" prompt "Reset provisioned status of the device"

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config USE_SEC_1 config USE_SEC_1
bool bool
default y default y
prompt "Use Security Version 1" prompt "Use Security Version 1"
@ -8,7 +8,7 @@ config USE_SEC_1
Security version 1 used Curve25519 key exchange for establishing Security version 1 used Curve25519 key exchange for establishing
secure session between device and client during provisioning secure session between device and client during provisioning
config USE_POP config USE_POP
bool bool
depends on USE_SEC_1 depends on USE_SEC_1
default y default y
@ -18,12 +18,12 @@ config USE_POP
in possession of the user who is provisioning the device. This proof-of-possession in possession of the user who is provisioning the device. This proof-of-possession
is internally used to generate the shared secret through key exchange. is internally used to generate the shared secret through key exchange.
config POP config POP
string "Proof-of-possession" string "Proof-of-possession"
default "abcd1234" default "abcd1234"
depends on USE_POP depends on USE_POP
config RESET_PROVISIONED config RESET_PROVISIONED
bool bool
default n default n
prompt "Reset provisioned status of the device" prompt "Reset provisioned status of the device"

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config SOFTAP_SSID config SOFTAP_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config SOFTAP_PASS config SOFTAP_PASS
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config USE_SEC_1 config USE_SEC_1
bool bool
default n default n
prompt "Use Security Version 1" prompt "Use Security Version 1"
@ -20,7 +20,7 @@ config USE_SEC_1
Security version 1 used Curve25519 key exchange for establishing Security version 1 used Curve25519 key exchange for establishing
secure session between device and client during provisioning secure session between device and client during provisioning
config USE_POP config USE_POP
bool bool
depends on USE_SEC_1 depends on USE_SEC_1
default n default n
@ -30,18 +30,18 @@ config USE_POP
in possession of the user who is provisioning the device. This proof-of-possession in possession of the user who is provisioning the device. This proof-of-possession
is internally used to generate the shared secret through key exchange. is internally used to generate the shared secret through key exchange.
config POP config POP
string "Proof-of-possession" string "Proof-of-possession"
default "abcd1234" default "abcd1234"
depends on USE_POP depends on USE_POP
config PROTOCOMM_HTTPD_PORT config PROTOCOMM_HTTPD_PORT
int "Protocomm HTTP Port" int "Protocomm HTTP Port"
default 80 default 80
help help
Port on which to run Protocomm HTTP based provisioning service Port on which to run Protocomm HTTP based provisioning service
config RESET_PROVISIONED config RESET_PROVISIONED
bool bool
default n default n
prompt "Reset provisioned status of the device" prompt "Reset provisioned status of the device"

View File

@ -1,25 +1,25 @@
menu "Example Configuration" menu "Example Configuration"
config SOFTAP_SSID_SET_MAC config SOFTAP_SSID_SET_MAC
bool "Use MAC as SSID" bool "Use MAC as SSID"
default y default y
help help
Set SoftAP SSID as PROV_<MAC>. Set SoftAP SSID as PROV_<MAC>.
config SOFTAP_SSID config SOFTAP_SSID
string "WiFi SSID" string "WiFi SSID"
default "PROV_SSID" default "PROV_SSID"
depends on !SOFTAP_SSID_SET_MAC depends on !SOFTAP_SSID_SET_MAC
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config SOFTAP_PASS config SOFTAP_PASS
string "WiFi Password" string "WiFi Password"
default "PROV_PASS" default "PROV_PASS"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config USE_SEC_1 config USE_SEC_1
bool bool
default y default y
prompt "Use Security Version 1" prompt "Use Security Version 1"
@ -27,7 +27,7 @@ config USE_SEC_1
Security version 1 used Curve25519 key exchange for establishing Security version 1 used Curve25519 key exchange for establishing
secure session between device and client during provisioning secure session between device and client during provisioning
config USE_POP config USE_POP
bool bool
depends on USE_SEC_1 depends on USE_SEC_1
default y default y
@ -37,12 +37,12 @@ config USE_POP
in possession of the user who is provisioning the device. This proof-of-possession in possession of the user who is provisioning the device. This proof-of-possession
is internally used to generate the shared secret through key exchange. is internally used to generate the shared secret through key exchange.
config POP config POP
string "Proof-of-possession" string "Proof-of-possession"
default "abcd1234" default "abcd1234"
depends on USE_POP depends on USE_POP
config RESET_PROVISIONED config RESET_PROVISIONED
bool bool
default n default n
prompt "Reset provisioned status of the device" prompt "Reset provisioned status of the device"

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config CUSTOM_RTC_CLK_8M_DIV config CUSTOM_RTC_CLK_8M_DIV
bool "Set custom RTC 8 MHz clock divider to lower CW frequency (CHECK HELP FIRST)" bool "Set custom RTC 8 MHz clock divider to lower CW frequency (CHECK HELP FIRST)"
default "n" default "n"
help help

View File

@ -1,42 +1,42 @@
menu "Example Configuration" menu "Example Configuration"
choice BASE_MAC_ADDRESS_STORAGE choice BASE_MAC_ADDRESS_STORAGE
prompt "Storage of the base MAC address" prompt "Storage of the base MAC address"
default BASE_MAC_STORED_EFUSE_BLK0 default BASE_MAC_STORED_EFUSE_BLK0
help help
Select storage of the base MAC address which is used to generate MAC addresses of all network interfaces Select storage of the base MAC address which is used to generate MAC addresses of all network interfaces
when networking is initialized. when networking is initialized.
If "Default (Espressif factory) EFUSE BLK0" is selected, esp32 will use default base MAC address which is If "Default (Espressif factory) eFuse BLK0" is selected, esp32 will use default base MAC address which is
written into EFUSE block 0 words 1, 2 when the chip is manufactured. written into eFuse block 0 words 1, 2 when the chip is manufactured.
If "Custom EFUSE BLK3" is selected, ESP32 will use customer-defined base MAC address which is written into If "Custom eFuse BLK3" is selected, ESP32 will use customer-defined base MAC address which is written into
EFUSE Block 3 words 0, 1. Users must call esp_efuse_mac_get_custom to get base MAC address and eFuse Block 3 words 0, 1. Users must call esp_efuse_mac_get_custom to get base MAC address and
esp_base_mac_addr_set to set the base MAC address before network interfaces are initialised. esp_base_mac_addr_set to set the base MAC address before network interfaces are initialised.
If "Other external storage" is selected, esp32 will use customer-defined base MAC address from external If "Other external storage" is selected, esp32 will use customer-defined base MAC address from external
storage(flash, EEPROM, etc). Users must get the base MAC address first and call esp_base_mac_addr_set to storage(flash, EEPROM, etc). Users must get the base MAC address first and call esp_base_mac_addr_set to
set the base MAC address before network interfaces are initialised. set the base MAC address before network interfaces are initialised.
config BASE_MAC_STORED_EFUSE_BLK0 config BASE_MAC_STORED_EFUSE_BLK0
bool "Default (Espressif factory) EFUSE BLK0" bool "Default (Espressif factory) eFuse BLK0"
config BASE_MAC_STORED_EFUSE_BLK3 config BASE_MAC_STORED_EFUSE_BLK3
bool "Custom EFUSE BLK3" bool "Custom eFuse BLK3"
config BASE_MAC_STORED_OTHER_EXTERNAL_STORAGE config BASE_MAC_STORED_OTHER_EXTERNAL_STORAGE
bool "Other external storage" bool "Other external storage"
endchoice endchoice
choice BASE_MAC_STORED_EFUSE_BLK3_ERROR_BEHAVIOR choice BASE_MAC_STORED_EFUSE_BLK3_ERROR_BEHAVIOR
prompt "Read base MAC address from BLK3 of EFUSE error behavior" prompt "Read base MAC address from BLK3 of eFuse error behavior"
depends on BASE_MAC_STORED_EFUSE_BLK3 depends on BASE_MAC_STORED_EFUSE_BLK3
default BASE_MAC_STORED_EFUSE_BLK3_ERROR_USE_DEFAULT default BASE_MAC_STORED_EFUSE_BLK3_ERROR_USE_DEFAULT
help help
Select behavior when reading base MAC address from BLK3 of EFUSE error. Select behavior when reading base MAC address from BLK3 of eFuse error.
If "Abort" is selected, esp32 will abort. If "Abort" is selected, esp32 will abort.
If "Use base MAC address from BLK3 of EFUSE" is selected, esp32 will use the base MAC address which is If "Use base MAC address from BLK3 of eFuse" is selected, esp32 will use the base MAC address which is
written into EFUSE block 0 words 1, 2 when the chip is manufactured. written into eFuse block 0 words 1, 2 when the chip is manufactured.
config BASE_MAC_STORED_EFUSE_BLK3_ERROR_ABORT config BASE_MAC_STORED_EFUSE_BLK3_ERROR_ABORT
bool "Abort" bool "Abort"
config BASE_MAC_STORED_EFUSE_BLK3_ERROR_USE_DEFAULT config BASE_MAC_STORED_EFUSE_BLK3_ERROR_USE_DEFAULT
bool "Use base MAC address from BLK3 of EFUSE" bool "Use base MAC address from BLK3 of eFuse"
endchoice endchoice
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config STORE_HISTORY config STORE_HISTORY
bool "Store command history in flash" bool "Store command history in flash"
default y default y
help help

View File

@ -1,13 +1,13 @@
menu "Example Configuration" menu "Example Configuration"
config ENABLE_TOUCH_WAKEUP config ENABLE_TOUCH_WAKEUP
bool "Enable touch wake up" bool "Enable touch wake up"
default y default y
help help
This option enables wake up from deep sleep using touch pads This option enables wake up from deep sleep using touch pads
TOUCH8 and TOUCH9, which correspond to GPIO33 and GPIO32. TOUCH8 and TOUCH9, which correspond to GPIO33 and GPIO32.
config ENABLE_ULP_TEMPERATURE_WAKEUP config ENABLE_ULP_TEMPERATURE_WAKEUP
bool "Enable temperature monitoring by ULP" bool "Enable temperature monitoring by ULP"
default y default y
help help

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config BLINK_GPIO config BLINK_GPIO
int "Blink GPIO number" int "Blink GPIO number"
range 0 34 range 0 34
default 5 default 5

View File

@ -1,12 +1,12 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
@ -14,7 +14,7 @@ config WIFI_PASSWORD
Can be left blank if the network has no security set. Can be left blank if the network has no security set.
config FIRMWARE_UPG_URL config FIRMWARE_UPG_URL
string "HTTP Server URL" string "HTTP Server URL"
default "https://192.168.0.3:8070/hello-world.bin" default "https://192.168.0.3:8070/hello-world.bin"
help help

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config FIRMWARE_UPGRADE_URL config FIRMWARE_UPGRADE_URL
string "firmware upgrade url endpoint" string "firmware upgrade url endpoint"
default "https://192.168.0.3:8070/hello-world.bin" default "https://192.168.0.3:8070/hello-world.bin"
help help

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config USE_CUSTOM_EVENT_ID config USE_CUSTOM_EVENT_ID
bool "Use custom SystemView event IDs" bool "Use custom SystemView event IDs"
default "n" default "n"
help help

View File

@ -1,58 +1,58 @@
menu "Example Configuration" menu "Example Configuration"
choice WIFI_MODE choice WIFI_MODE
prompt "WiFi mode" prompt "WiFi mode"
default STATION_MODE default STATION_MODE
help help
WiFi mode(station or softap). WiFi mode(station or softap).
config STATION_MODE config STATION_MODE
bool "Station" bool "Station"
config SOFTAP_MODE config SOFTAP_MODE
bool "Softap" bool "Softap"
endchoice endchoice
config ESPNOW_PMK config ESPNOW_PMK
string "ESPNOW primary master key" string "ESPNOW primary master key"
default "pmk1234567890123" default "pmk1234567890123"
help help
ESPNOW primary master for the example to use. The length of ESPNOW primary master must be 16 bytes. ESPNOW primary master for the example to use. The length of ESPNOW primary master must be 16 bytes.
config ESPNOW_LMK config ESPNOW_LMK
string "ESPNOW local master key" string "ESPNOW local master key"
default "lmk1234567890123" default "lmk1234567890123"
help help
ESPNOW local master for the example to use. The length of ESPNOW local master must be 16 bytes. ESPNOW local master for the example to use. The length of ESPNOW local master must be 16 bytes.
config ESPNOW_CHANNEL config ESPNOW_CHANNEL
int "Channel" int "Channel"
default 1 default 1
range 1 13 range 1 13
help help
The channel on which sending and receiving ESPNOW data. The channel on which sending and receiving ESPNOW data.
config ESPNOW_SEND_COUNT config ESPNOW_SEND_COUNT
int "Send count" int "Send count"
default 100 default 100
range 1 65535 range 1 65535
help help
Total count of unicast ESPNOW data to be sent. Total count of unicast ESPNOW data to be sent.
config ESPNOW_SEND_DELAY config ESPNOW_SEND_DELAY
int "Send delay" int "Send delay"
default 1000 default 1000
range 0 65535 range 0 65535
help help
Delay between sending two ESPNOW data, unit: ms. Delay between sending two ESPNOW data, unit: ms.
config ESPNOW_SEND_LEN config ESPNOW_SEND_LEN
int "Send len" int "Send len"
range 10 250 range 10 250
default 10 default 10
help help
Length of ESPNOW data to be sent, unit: byte. Length of ESPNOW data to be sent, unit: byte.
config ENABLE_LONG_RANGE config ENABLE_LONG_RANGE
bool "Enable Long Range" bool "Enable Long Range"
default "n" default "n"
help help

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config ESP_WIFI_SSID config ESP_WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config ESP_WIFI_PASSWORD config ESP_WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config MAX_STA_CONN config MAX_STA_CONN
int "Maximal STA connections" int "Maximal STA connections"
default 4 default 4
help help

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config ESP_WIFI_SSID config ESP_WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config ESP_WIFI_PASSWORD config ESP_WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config ESP_MAXIMUM_RETRY config ESP_MAXIMUM_RETRY
int "Maximum retry" int "Maximum retry"
default 5 default 5
help help

View File

@ -1,18 +1,18 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
config WIFI_LISTEN_INTERVAL config WIFI_LISTEN_INTERVAL
int "WiFi listen interval" int "WiFi listen interval"
default 3 default 3
help help
@ -20,7 +20,7 @@ config WIFI_LISTEN_INTERVAL
For example, if beacon interval is 100 ms and listen interval is 3, the interval for station to listen For example, if beacon interval is 100 ms and listen interval is 3, the interval for station to listen
to beacon is 300 ms. to beacon is 300 ms.
choice POWER_SAVE_MODE choice POWER_SAVE_MODE
prompt "power save mode" prompt "power save mode"
default POWER_SAVE_MIN_MODEM default POWER_SAVE_MIN_MODEM
help help
@ -32,60 +32,60 @@ choice POWER_SAVE_MODE
may be lost because station may be in sleep state at DTIM time. If listen interval is longer, more power may be lost because station may be in sleep state at DTIM time. If listen interval is longer, more power
is saved but broadcast data is more easy to lose. is saved but broadcast data is more easy to lose.
config POWER_SAVE_NONE config POWER_SAVE_NONE
bool "none" bool "none"
config POWER_SAVE_MIN_MODEM config POWER_SAVE_MIN_MODEM
bool "minimum modem" bool "minimum modem"
config POWER_SAVE_MAX_MODEM config POWER_SAVE_MAX_MODEM
bool "maximum modem" bool "maximum modem"
endchoice endchoice
choice EXAMPLE_MAX_CPU_FREQ choice EXAMPLE_MAX_CPU_FREQ
prompt "Maximum CPU frequency" prompt "Maximum CPU frequency"
default EXAMPLE_MAX_CPU_FREQ_80 default EXAMPLE_MAX_CPU_FREQ_80
help help
Maximum CPU frequency to use for dynamic frequency scaling. Maximum CPU frequency to use for dynamic frequency scaling.
config EXAMPLE_MAX_CPU_FREQ_80 config EXAMPLE_MAX_CPU_FREQ_80
bool "80 MHz" bool "80 MHz"
config EXAMPLE_MAX_CPU_FREQ_160 config EXAMPLE_MAX_CPU_FREQ_160
bool "160 MHz" bool "160 MHz"
config EXAMPLE_MAX_CPU_FREQ_240 config EXAMPLE_MAX_CPU_FREQ_240
bool "240 MHz" bool "240 MHz"
endchoice endchoice
config EXAMPLE_MAX_CPU_FREQ_MHZ config EXAMPLE_MAX_CPU_FREQ_MHZ
int int
default 80 if EXAMPLE_MAX_CPU_FREQ_80 default 80 if EXAMPLE_MAX_CPU_FREQ_80
default 160 if EXAMPLE_MAX_CPU_FREQ_160 default 160 if EXAMPLE_MAX_CPU_FREQ_160
default 240 if EXAMPLE_MAX_CPU_FREQ_240 default 240 if EXAMPLE_MAX_CPU_FREQ_240
choice EXAMPLE_MIN_CPU_FREQ choice EXAMPLE_MIN_CPU_FREQ
prompt "Minimum CPU frequency" prompt "Minimum CPU frequency"
default EXAMPLE_MIN_CPU_FREQ_10M default EXAMPLE_MIN_CPU_FREQ_10M
help help
Minimum CPU frequency to use for dynamic frequency scaling. Minimum CPU frequency to use for dynamic frequency scaling.
Should be set to XTAL frequency or XTAL frequency divided by integer. Should be set to XTAL frequency or XTAL frequency divided by integer.
config EXAMPLE_MIN_CPU_FREQ_40M config EXAMPLE_MIN_CPU_FREQ_40M
bool "40 MHz (use with 40MHz XTAL)" bool "40 MHz (use with 40MHz XTAL)"
depends on ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO depends on ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO
config EXAMPLE_MIN_CPU_FREQ_20M config EXAMPLE_MIN_CPU_FREQ_20M
bool "20 MHz (use with 40MHz XTAL)" bool "20 MHz (use with 40MHz XTAL)"
depends on ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO depends on ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO
config EXAMPLE_MIN_CPU_FREQ_10M config EXAMPLE_MIN_CPU_FREQ_10M
bool "10 MHz (use with 40MHz XTAL)" bool "10 MHz (use with 40MHz XTAL)"
depends on ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO depends on ESP32_XTAL_FREQ_40 || ESP32_XTAL_FREQ_AUTO
config EXAMPLE_MIN_CPU_FREQ_26M config EXAMPLE_MIN_CPU_FREQ_26M
bool "26 MHz (use with 26MHz XTAL)" bool "26 MHz (use with 26MHz XTAL)"
depends on ESP32_XTAL_FREQ_26 || ESP32_XTAL_FREQ_AUTO depends on ESP32_XTAL_FREQ_26 || ESP32_XTAL_FREQ_AUTO
config EXAMPLE_MIN_CPU_FREQ_13M config EXAMPLE_MIN_CPU_FREQ_13M
bool "13 MHz (use with 26MHz XTAL)" bool "13 MHz (use with 26MHz XTAL)"
depends on ESP32_XTAL_FREQ_26 || ESP32_XTAL_FREQ_AUTO depends on ESP32_XTAL_FREQ_26 || ESP32_XTAL_FREQ_AUTO
endchoice endchoice
config EXAMPLE_MIN_CPU_FREQ_MHZ config EXAMPLE_MIN_CPU_FREQ_MHZ
int int
default 40 if EXAMPLE_MIN_CPU_FREQ_40M default 40 if EXAMPLE_MIN_CPU_FREQ_40M
default 20 if EXAMPLE_MIN_CPU_FREQ_20M default 20 if EXAMPLE_MIN_CPU_FREQ_20M

View File

@ -1,48 +1,48 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "myssid" default "myssid"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config WIFI_PASSWORD config WIFI_PASSWORD
string "WiFi Password" string "WiFi Password"
default "mypassword" default "mypassword"
help help
WiFi password (WPA or WPA2) for the example to use. WiFi password (WPA or WPA2) for the example to use.
choice SCAN_METHOD choice SCAN_METHOD
prompt "scan method" prompt "scan method"
default WIFI_FAST_SCAN default WIFI_FAST_SCAN
help help
scan method for the esp32 to use scan method for the esp32 to use
config WIFI_FAST_SCAN config WIFI_FAST_SCAN
bool "fast" bool "fast"
config WIFI_ALL_CHANNEL_SCAN config WIFI_ALL_CHANNEL_SCAN
bool "all" bool "all"
endchoice endchoice
choice SORT_METHOD choice SORT_METHOD
prompt "sort method" prompt "sort method"
default WIFI_CONNECT_AP_BY_SIGNAL default WIFI_CONNECT_AP_BY_SIGNAL
help help
sort method for the esp32 to use sort method for the esp32 to use
config WIFI_CONNECT_AP_BY_SIGNAL config WIFI_CONNECT_AP_BY_SIGNAL
bool "rssi" bool "rssi"
config WIFI_CONNECT_AP_BY_SECURITY config WIFI_CONNECT_AP_BY_SECURITY
bool "authmode" bool "authmode"
endchoice endchoice
config FAST_SCAN_THRESHOLD config FAST_SCAN_THRESHOLD
bool "fast scan threshold" bool "fast scan threshold"
default y default y
help help
wifi fast scan threshold wifi fast scan threshold
config FAST_SCAN_MINIMUM_SIGNAL config FAST_SCAN_MINIMUM_SIGNAL
int "fast scan minimum rssi" int "fast scan minimum rssi"
depends on FAST_SCAN_THRESHOLD depends on FAST_SCAN_THRESHOLD
range -127 0 range -127 0
@ -50,19 +50,19 @@ config FAST_SCAN_MINIMUM_SIGNAL
help help
rssi is use to measure the signal rssi is use to measure the signal
choice FAST_SCAN_WEAKEST_AUTHMODE choice FAST_SCAN_WEAKEST_AUTHMODE
prompt "fast scan weakest authmode" prompt "fast scan weakest authmode"
depends on FAST_SCAN_THRESHOLD depends on FAST_SCAN_THRESHOLD
default EXAMPLE_OPEN default EXAMPLE_OPEN
config EXAMPLE_OPEN config EXAMPLE_OPEN
bool "open" bool "open"
config EXAMPLE_WEP config EXAMPLE_WEP
bool "wep" bool "wep"
config EXAMPLE_WPA config EXAMPLE_WPA
bool "wpa" bool "wpa"
config EXAMPLE_WPA2 config EXAMPLE_WPA2
bool "wpa2" bool "wpa2"
endchoice endchoice
endmenu endmenu

View File

@ -1,6 +1,6 @@
menu "Example Configuration" menu "Example Configuration"
config STORE_HISTORY config STORE_HISTORY
bool "Store command history in flash" bool "Store command history in flash"
default y default y
help help
@ -8,13 +8,13 @@ config STORE_HISTORY
command history. If this option is enabled, initalizes a FAT filesystem command history. If this option is enabled, initalizes a FAT filesystem
and uses it to store command history. and uses it to store command history.
config SNIFFER_MOUNT_POINT config SNIFFER_MOUNT_POINT
string "Mount Point in your filesystem to store pcap files" string "Mount Point in your filesystem to store pcap files"
default "/sdcard" default "/sdcard"
help help
Here you need to specify the mount point in the VFS (Virtual File System) where the pcap would be saved. Here you need to specify the mount point in the VFS (Virtual File System) where the pcap would be saved.
config SNIFFER_WORK_QUEUE_LENGTH config SNIFFER_WORK_QUEUE_LENGTH
int "Length of sniffer work queue" int "Length of sniffer work queue"
default 128 default 128
help help
@ -22,19 +22,19 @@ config SNIFFER_WORK_QUEUE_LENGTH
The task gets some basic info of sniffer packet via queue. The task gets some basic info of sniffer packet via queue.
Here you should specify the length of queue. Here you should specify the length of queue.
config SNIFFER_TASK_STACK_SIZE config SNIFFER_TASK_STACK_SIZE
int "Stack size of sniffer task" int "Stack size of sniffer task"
default 2560 default 2560
help help
The stack size of sniffer task. The stack size of sniffer task.
config SNIFFER_TASK_PRIORITY config SNIFFER_TASK_PRIORITY
int "Priority of sniffer task" int "Priority of sniffer task"
default 2 default 2
help help
Priority of sniffer task. Priority of sniffer task.
config PCAP_FILE_MAX_PACKETS config PCAP_FILE_MAX_PACKETS
int "Max packets in a pcap file" int "Max packets in a pcap file"
default 2000 default 2000
help help

View File

@ -1,31 +1,31 @@
menu "Example Configuration" menu "Example Configuration"
config WIFI_SSID config WIFI_SSID
string "WiFi SSID" string "WiFi SSID"
default "wpa2_test" default "wpa2_test"
help help
SSID (network name) for the example to connect to. SSID (network name) for the example to connect to.
config EAP_METHOD config EAP_METHOD
int "EAP METHOD" int "EAP METHOD"
default 1 default 1
help help
EAP method (TLS, PEAP or TTLS) for the example to use. EAP method (TLS, PEAP or TTLS) for the example to use.
TLS: 0, PEAP: 1, TTLS: 2 TLS: 0, PEAP: 1, TTLS: 2
config EAP_ID config EAP_ID
string "EAP ID" string "EAP ID"
default "example@espressif.com" default "example@espressif.com"
help help
Identity in phase 1 of EAP procedure. Identity in phase 1 of EAP procedure.
config EAP_USERNAME config EAP_USERNAME
string "EAP USERNAME" string "EAP USERNAME"
default "espressif" default "espressif"
help help
Username for EAP method (PEAP and TTLS). Username for EAP method (PEAP and TTLS).
config EAP_PASSWORD config EAP_PASSWORD
string "EAP PASSWORD" string "EAP PASSWORD"
default "test11" default "test11"
help help

View File

@ -1,17 +1,17 @@
menu "Example Configuration" menu "Example Configuration"
choice EXAMPLE_WPS_TYPE choice EXAMPLE_WPS_TYPE
prompt "WPS mode" prompt "WPS mode"
default EXAMPLE_WPS_TYPE_PBC default EXAMPLE_WPS_TYPE_PBC
help help
WPS type for the esp32 to use. WPS type for the esp32 to use.
config EXAMPLE_WPS_TYPE_PBC config EXAMPLE_WPS_TYPE_PBC
bool "PBC" bool "PBC"
config EXAMPLE_WPS_TYPE_PIN config EXAMPLE_WPS_TYPE_PIN
bool "PIN" bool "PIN"
config EXAMPLE_WPS_TYPE_DISABLE config EXAMPLE_WPS_TYPE_DISABLE
bool "disable" bool "disable"
endchoice endchoice
endmenu endmenu

View File

@ -34,116 +34,12 @@ OUTPUT_SUFFIX = '.new'
IGNORE_DIRS = ( IGNORE_DIRS = (
# Kconfigs from submodules need to be ignored: # Kconfigs from submodules need to be ignored:
os.path.join('components', 'mqtt', 'esp-mqtt'), os.path.join('components', 'mqtt', 'esp-mqtt'),
# Temporary (incompatibility) list:
os.path.join('components', 'app_update'),
os.path.join('components', 'aws_iot'),
os.path.join('components', 'bootloader'),
os.path.join('components', 'bt'),
os.path.join('components', 'driver'),
os.path.join('components', 'esp32'),
os.path.join('components', 'esp_adc_cal'),
os.path.join('components', 'esp_event'),
os.path.join('components', 'esp_http_client'),
os.path.join('components', 'esp_http_server'),
os.path.join('components', 'esptool_py'),
os.path.join('components', 'fatfs'),
os.path.join('components', 'freemodbus'),
os.path.join('components', 'freertos'),
os.path.join('components', 'heap'),
os.path.join('components', 'libsodium'),
os.path.join('components', 'log'),
os.path.join('components', 'lwip'),
os.path.join('components', 'mbedtls'),
os.path.join('components', 'mdns'),
os.path.join('components', 'mqtt'),
os.path.join('components', 'nvs_flash'),
os.path.join('components', 'openssl'),
os.path.join('components', 'partition_table'),
os.path.join('components', 'pthread'),
os.path.join('components', 'spi_flash'),
os.path.join('components', 'spiffs'),
os.path.join('components', 'tcpip_adapter'),
os.path.join('components', 'unity'),
os.path.join('components', 'vfs'),
os.path.join('components', 'wear_levelling'),
os.path.join('examples', 'bluetooth', 'a2dp_gatts_coex', 'main'),
os.path.join('examples', 'bluetooth', 'a2dp_sink', 'main'),
os.path.join('examples', 'bluetooth', 'ble_ibeacon', 'main'),
os.path.join('examples', 'bluetooth', 'ble_throughput', 'throughput_client', 'main'),
os.path.join('examples', 'bluetooth', 'ble_throughput', 'throughput_server', 'main'),
os.path.join('examples', 'bluetooth', 'gatt_server', 'main'),
os.path.join('examples', 'get-started', 'blink', 'main'),
os.path.join('examples', 'mesh', 'internal_communication', 'main'),
os.path.join('examples', 'mesh', 'manual_networking', 'main'),
os.path.join('examples', 'peripherals', 'adc2', 'main'),
os.path.join('examples', 'peripherals', 'i2c', 'i2c_self_test', 'main'),
os.path.join('examples', 'peripherals', 'i2c', 'i2c_tools', 'main'),
os.path.join('examples', 'peripherals', 'sdio', 'host', 'main'),
os.path.join('examples', 'peripherals', 'sdio', 'slave', 'main'),
os.path.join('examples', 'peripherals', 'spi_master', 'main'),
os.path.join('examples', 'peripherals', 'uart', 'nmea0183_parser', 'main'),
os.path.join('examples', 'protocols', 'asio', 'chat_client', 'main'),
os.path.join('examples', 'protocols', 'asio', 'chat_server', 'main'),
os.path.join('examples', 'protocols', 'asio', 'tcp_echo_server', 'main'),
os.path.join('examples', 'protocols', 'asio', 'udp_echo_server', 'main'),
os.path.join('examples', 'protocols', 'aws_iot', 'subscribe_publish', 'main'),
os.path.join('examples', 'protocols', 'aws_iot', 'thing_shadow', 'main'),
os.path.join('examples', 'protocols', 'coap_client', 'main'),
os.path.join('examples', 'protocols', 'coap_server', 'main'),
os.path.join('examples', 'protocols', 'esp_http_client', 'main'),
os.path.join('examples', 'protocols', 'http2_request', 'main'),
os.path.join('examples', 'protocols', 'http_request', 'main'),
os.path.join('examples', 'protocols', 'http_server', 'advanced_tests', 'main'),
os.path.join('examples', 'protocols', 'http_server', 'persistent_sockets', 'main'),
os.path.join('examples', 'protocols', 'http_server', 'simple', 'main'),
os.path.join('examples', 'protocols', 'https_mbedtls', 'main'),
os.path.join('examples', 'protocols', 'https_request', 'main'),
os.path.join('examples', 'protocols', 'https_server', 'main'),
os.path.join('examples', 'protocols', 'mdns', 'main'),
os.path.join('examples', 'protocols', 'modbus_slave', 'main'),
os.path.join('examples', 'protocols', 'mqtt', 'ssl', 'main'),
os.path.join('examples', 'protocols', 'mqtt', 'ssl_mutual_auth', 'main'),
os.path.join('examples', 'protocols', 'mqtt', 'tcp', 'main'),
os.path.join('examples', 'protocols', 'mqtt', 'ws', 'main'),
os.path.join('examples', 'protocols', 'mqtt', 'wss', 'main'),
os.path.join('examples', 'protocols', 'openssl_client', 'main'),
os.path.join('examples', 'protocols', 'openssl_server', 'main'),
os.path.join('examples', 'protocols', 'pppos_client', 'main'),
os.path.join('examples', 'protocols', 'sntp', 'main'),
os.path.join('examples', 'protocols', 'sockets', 'tcp_client', 'main'),
os.path.join('examples', 'protocols', 'sockets', 'tcp_server', 'main'),
os.path.join('examples', 'protocols', 'sockets', 'udp_client', 'main'),
os.path.join('examples', 'protocols', 'sockets', 'udp_multicast', 'main'),
os.path.join('examples', 'protocols', 'sockets', 'udp_server', 'main'),
os.path.join('examples', 'provisioning', 'ble_prov', 'main'),
os.path.join('examples', 'provisioning', 'console_prov', 'main'),
os.path.join('examples', 'provisioning', 'custom_config', 'main'),
os.path.join('examples', 'provisioning', 'softap_prov', 'main'),
os.path.join('examples', 'system', 'app_trace_to_host', 'main'),
os.path.join('examples', 'system', 'base_mac_address', 'main'),
os.path.join('examples', 'system', 'console', 'main'),
os.path.join('examples', 'system', 'deep_sleep', 'main'),
os.path.join('examples', 'system', 'gcov', 'main'),
os.path.join('examples', 'system', 'ota', 'native_ota_example', 'main'),
os.path.join('examples', 'system', 'ota', 'simple_ota_example', 'main'),
os.path.join('examples', 'system', 'sysview_tracing', 'main'),
os.path.join('examples', 'wifi', 'espnow', 'main'),
os.path.join('examples', 'wifi', 'getting_started', 'softAP', 'main'),
os.path.join('examples', 'wifi', 'getting_started', 'station', 'main'),
os.path.join('examples', 'wifi', 'power_save', 'main'),
os.path.join('examples', 'wifi', 'scan', 'main'),
os.path.join('examples', 'wifi', 'simple_sniffer', 'main'),
os.path.join('examples', 'wifi', 'wpa2_enterprise', 'main'),
os.path.join('examples', 'wifi', 'wps', 'main'),
os.path.join('tools', 'kconfig'),
os.path.join('tools', 'kconfig_new', 'test'),
os.path.join('tools', 'ldgen', 'test', 'data'),
os.path.join('tools', 'unit-test-app', 'components', 'test_utils'),
) )
SPACES_PER_INDENT = 4 SPACES_PER_INDENT = 4
CONFIG_NAME_MAX_LENGTH = 50 # TODO decrease the value (after the names have been refactored)
CONFIG_NAME_MAX_LENGTH = 60
# TODO increase prefix length (after the names have been refactored) # TODO increase prefix length (after the names have been refactored)
CONFIG_NAME_MIN_PREFIX_LENGTH = 0 CONFIG_NAME_MIN_PREFIX_LENGTH = 0
@ -211,6 +107,9 @@ class IndentAndNameChecker(BaseChecker):
# stack common prefixes of configs # stack common prefixes of configs
self.prefix_stack = [] self.prefix_stack = []
# if the line ends with '\' then we force the indent of the next line
self.force_next_indent = 0
# menu items which increase the indentation of the next line # menu items which increase the indentation of the next line
self.re_increase_level = re.compile(r'''^\s* self.re_increase_level = re.compile(r'''^\s*
( (
@ -287,6 +186,10 @@ class IndentAndNameChecker(BaseChecker):
# delete items ("config", "menuconfig", "help") until the appropriate parent # delete items ("config", "menuconfig", "help") until the appropriate parent
self.del_from_level_stack(i) self.del_from_level_stack(i)
break break
else:
# delete everything when configs are at top level without a parent menu, mainmenu...
self.del_from_level_stack(len(self.level_stack))
self.level_stack.append(new_item) self.level_stack.append(new_item)
if self.debug: if self.debug:
print(self.level_stack) print(self.level_stack)
@ -321,8 +224,10 @@ class IndentAndNameChecker(BaseChecker):
raise InputError(self.path_in_idf, line_number, raise InputError(self.path_in_idf, line_number,
'{} is {} characters long and it should be {} at most' '{} is {} characters long and it should be {} at most'
''.format(name, name_length, CONFIG_NAME_MAX_LENGTH), ''.format(name, name_length, CONFIG_NAME_MAX_LENGTH),
line) # no suggested correction for this line + '\n') # no suggested correction for this
if self.prefix_stack[-1] is None: if len(self.prefix_stack) == 0:
self.prefix_stack.append(name)
elif self.prefix_stack[-1] is None:
self.prefix_stack[-1] = name self.prefix_stack[-1] = name
else: else:
# this has nothing common with paths but the algorithm can be used for this also # this has nothing common with paths but the algorithm can be used for this also
@ -366,6 +271,7 @@ class IndentAndNameChecker(BaseChecker):
def process_line(self, line, line_number): def process_line(self, line, line_number):
stripped_line = line.strip() stripped_line = line.strip()
if len(stripped_line) == 0: if len(stripped_line) == 0:
self.force_next_indent = 0
return return
current_level = len(self.level_stack) current_level = len(self.level_stack)
m = re.search(r'\S', line) # indent found as the first non-space character m = re.search(r'\S', line) # indent found as the first non-space character
@ -377,8 +283,26 @@ class IndentAndNameChecker(BaseChecker):
if current_level > 0 and self.level_stack[-1] == 'help': if current_level > 0 and self.level_stack[-1] == 'help':
if current_indent >= current_level * SPACES_PER_INDENT: if current_indent >= current_level * SPACES_PER_INDENT:
# this line belongs to 'help' # this line belongs to 'help'
self.force_next_indent = 0
return return
if self.force_next_indent > 0:
if current_indent != self.force_next_indent:
raise InputError(self.path_in_idf, line_number,
'Indentation consists of {} spaces instead of {}'.format(current_indent,
self.force_next_indent),
(' ' * self.force_next_indent) + line.lstrip())
else:
if not stripped_line.endswith('\\'):
self.force_next_indent = 0
return
else:
if stripped_line.endswith('\\') and stripped_line.startswith(('config', 'menuconfig', 'choice')):
raise InputError(self.path_in_idf, line_number,
'Line-wrap with backslash is not supported here',
line) # no suggestion for this
self.check_name_and_update_prefix(stripped_line, line_number) self.check_name_and_update_prefix(stripped_line, line_number)
m = self.re_increase_level.search(line) m = self.re_increase_level.search(line)
@ -395,6 +319,12 @@ class IndentAndNameChecker(BaseChecker):
self.check_common_prefix(line, line_number) self.check_common_prefix(line, line_number)
expected_indent = current_level * SPACES_PER_INDENT expected_indent = current_level * SPACES_PER_INDENT
if stripped_line.endswith('\\'):
self.force_next_indent = expected_indent + SPACES_PER_INDENT
else:
self.force_next_indent = 0
if current_indent != expected_indent: if current_indent != expected_indent:
raise InputError(self.path_in_idf, line_number, raise InputError(self.path_in_idf, line_number,
'Indentation consists of {} spaces instead of {}'.format(current_indent, expected_indent), 'Indentation consists of {} spaces instead of {}'.format(current_indent, expected_indent),

Some files were not shown because too many files have changed in this diff Show More