mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 17:16:29 +08:00
feat: Add target platform choise, default esp8266
Not support esp32 now.
This commit is contained in:
16
Kconfig
16
Kconfig
@ -4,11 +4,23 @@
|
|||||||
#
|
#
|
||||||
mainmenu "Espressif IoT Development Framework Configuration"
|
mainmenu "Espressif IoT Development Framework Configuration"
|
||||||
|
|
||||||
|
choice TARGET_PLATFORM
|
||||||
|
bool "Espressif target platform choose"
|
||||||
|
default TARGET_PLATFORM_ESP8266
|
||||||
|
help
|
||||||
|
Choose the specific target platform which you will use.
|
||||||
|
|
||||||
|
config TARGET_PLATFORM_ESP32
|
||||||
|
bool "esp32"
|
||||||
|
config TARGET_PLATFORM_ESP8266
|
||||||
|
bool "esp8266"
|
||||||
|
endchoice
|
||||||
|
|
||||||
menu "SDK tool configuration"
|
menu "SDK tool configuration"
|
||||||
config TOOLPREFIX
|
config TOOLPREFIX
|
||||||
string "Compiler toolchain path/prefix"
|
string
|
||||||
default "xtensa-lx106-elf-"
|
default "xtensa-esp32-elf-" if TARGET_PLATFORM_ESP32
|
||||||
|
default "xtensa-lx106-elf-" if TARGET_PLATFORM_ESP8266
|
||||||
help
|
help
|
||||||
The prefix/path that is used to call the toolchain. The default setting assumes
|
The prefix/path that is used to call the toolchain. The default setting assumes
|
||||||
a crosstool-ng gcc setup that is in your PATH.
|
a crosstool-ng gcc setup that is in your PATH.
|
||||||
|
@ -32,7 +32,7 @@ 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) && TARGET_PLATFORM_ESP32
|
||||||
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.
|
||||||
@ -46,6 +46,7 @@ config BOOTLOADER_SPI_WP_PIN
|
|||||||
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
|
||||||
|
depends on TARGET_PLATFORM_ESP32
|
||||||
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
|
||||||
@ -57,7 +58,7 @@ choice BOOTLOADER_VDDSDIO_BOOST
|
|||||||
|
|
||||||
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 && TARGET_PLATFORM_ESP32
|
||||||
config BOOTLOADER_VDDSDIO_BOOST_1_9V
|
config BOOTLOADER_VDDSDIO_BOOST_1_9V
|
||||||
bool "1.9V"
|
bool "1.9V"
|
||||||
endchoice
|
endchoice
|
||||||
@ -65,6 +66,7 @@ endchoice
|
|||||||
config BOOTLOADER_FACTORY_RESET
|
config BOOTLOADER_FACTORY_RESET
|
||||||
bool "GPIO triggers factory reset"
|
bool "GPIO triggers factory reset"
|
||||||
default N
|
default N
|
||||||
|
depends on TARGET_PLATFORM_ESP32
|
||||||
help
|
help
|
||||||
Allows to reset the device to factory settings:
|
Allows to reset the device to factory settings:
|
||||||
- clear one or more data partitions;
|
- clear one or more data partitions;
|
||||||
@ -74,7 +76,7 @@ config BOOTLOADER_FACTORY_RESET
|
|||||||
|
|
||||||
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 && TARGET_PLATFORM_ESP32
|
||||||
range 0 39
|
range 0 39
|
||||||
default 4
|
default 4
|
||||||
help
|
help
|
||||||
@ -102,6 +104,7 @@ config BOOTLOADER_DATA_FACTORY_RESET
|
|||||||
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
|
||||||
|
depends on TARGET_PLATFORM_ESP32
|
||||||
help
|
help
|
||||||
Allows to run the test app from "TEST" partition.
|
Allows to run the test app from "TEST" partition.
|
||||||
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.
|
||||||
@ -131,6 +134,7 @@ endmenu # Bootloader
|
|||||||
|
|
||||||
|
|
||||||
menu "Security features"
|
menu "Security features"
|
||||||
|
depends on TARGET_PLATFORM_ESP32
|
||||||
|
|
||||||
config SECURE_BOOT_ENABLED
|
config SECURE_BOOT_ENABLED
|
||||||
bool "Enable secure boot in bootloader (READ DOCS FIRST)"
|
bool "Enable secure boot in bootloader (READ DOCS FIRST)"
|
||||||
|
Reference in New Issue
Block a user