mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
config: Simplify WiFi & Bluetooth config options
Removes redundant menu options, splits WiFi configuration out from generic ESP32 configuration.
This commit is contained in:
parent
a54791846b
commit
2e78b397bc
@ -1,41 +1,26 @@
|
|||||||
menu "BT config"
|
menu "Bluetooth"
|
||||||
visible if MEMMAP_BT
|
|
||||||
|
|
||||||
|
|
||||||
config BT_ENABLED
|
config BT_ENABLED
|
||||||
bool
|
bool "Enable Bluetooth stack"
|
||||||
depends on ESP32_ENABLE_STACK_BT
|
|
||||||
help
|
|
||||||
This compiles in the low-level BT stack.
|
|
||||||
|
|
||||||
config BTC_TASK_STACK_SIZE
|
config BTC_TASK_STACK_SIZE
|
||||||
int "BT event (callback to application) task stack size"
|
int "Bluetooth event (callback to application) task stack size"
|
||||||
|
depends on BT_ENABLED
|
||||||
default 3072
|
default 3072
|
||||||
help
|
help
|
||||||
This select btc task stack size
|
This select btc task stack size
|
||||||
|
|
||||||
config BLUEDROID_MEM_DEBUG
|
config BLUEDROID_MEM_DEBUG
|
||||||
bool "Bluedroid memory debug"
|
bool "Bluedroid memory debug"
|
||||||
default no
|
depends on BT_ENABLED
|
||||||
|
default n
|
||||||
help
|
help
|
||||||
Bluedroid memory debug
|
Bluedroid memory debug
|
||||||
|
|
||||||
#config BT_BTLE
|
|
||||||
# bool "Enable BTLE"
|
|
||||||
# depends on BT_ENABLED
|
|
||||||
# help
|
|
||||||
# This compiles BTLE support
|
|
||||||
#
|
|
||||||
#config BT_BT
|
|
||||||
# bool "Enable classic BT"
|
|
||||||
# depends on BT_ENABLED
|
|
||||||
# help
|
|
||||||
# This enables classic BT support
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
# Memory reserved at start of DRAM for Bluetooth stack
|
# Memory reserved at start of DRAM for Bluetooth stack
|
||||||
config BT_RESERVE_DRAM
|
config BT_RESERVE_DRAM
|
||||||
hex
|
hex
|
||||||
default 0x10000 if MEMMAP_BT
|
default 0x10000 if BT_ENABLED
|
||||||
default 0
|
default 0
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Component Makefile
|
# Component Makefile
|
||||||
#
|
#
|
||||||
|
ifdef CONFIG_BT_ENABLED
|
||||||
|
|
||||||
COMPONENT_ADD_INCLUDEDIRS := bluedroid/bta/include \
|
COMPONENT_ADD_INCLUDEDIRS := bluedroid/bta/include \
|
||||||
bluedroid/bta/sys/include \
|
bluedroid/bta/sys/include \
|
||||||
@ -71,3 +72,5 @@ COMPONENT_SRCDIRS := bluedroid/bta/dm \
|
|||||||
.
|
.
|
||||||
|
|
||||||
COMPONENT_SUBMODULES += lib
|
COMPONENT_SUBMODULES += lib
|
||||||
|
|
||||||
|
endif
|
||||||
|
@ -20,42 +20,6 @@ config ESP32_DEFAULT_CPU_FREQ_MHZ
|
|||||||
default 160 if ESP32_DEFAULT_CPU_FREQ_160
|
default 160 if ESP32_DEFAULT_CPU_FREQ_160
|
||||||
default 240 if ESP32_DEFAULT_CPU_FREQ_240
|
default 240 if ESP32_DEFAULT_CPU_FREQ_240
|
||||||
|
|
||||||
#choice ESP32_WIFI_OR_BT
|
|
||||||
# prompt "Select stack to enable (WiFi or BT)"
|
|
||||||
# default ESP32_ENABLE_WIFI
|
|
||||||
# help
|
|
||||||
# Temporarily, WiFi and BT stacks can not be used at the same time.
|
|
||||||
# Select which stack to enable.
|
|
||||||
|
|
||||||
config ESP32_ENABLE_STACK_WIFI
|
|
||||||
bool "WiFi"
|
|
||||||
select WIFI_ENABLED if ESP32_ENABLE_STACK_WIFI
|
|
||||||
config ESP32_ENABLE_STACK_BT
|
|
||||||
bool "BT"
|
|
||||||
select MEMMAP_BT if ESP32_ENABLE_STACK_BT
|
|
||||||
select BT_ENABLED if ESP32_ENABLE_STACK_BT
|
|
||||||
#config ESP32_ENABLE_STACK_NONE
|
|
||||||
# bool "None"
|
|
||||||
#endchoice
|
|
||||||
|
|
||||||
config SW_COEXIST_ENABLE
|
|
||||||
bool "Software controls WiFi/BT coexistence"
|
|
||||||
depends on ESP32_ENABLE_STACK_BT && ESP32_ENABLE_STACK_WIFI
|
|
||||||
default "n"
|
|
||||||
help
|
|
||||||
If enabled, WiFi & BT coexistence is controlled by software rather than hardware.
|
|
||||||
Recommended for heavy traffic scenarios. Both coexistence configuration options are
|
|
||||||
automatically managed, no user intervention is required.
|
|
||||||
|
|
||||||
config MEMMAP_BT
|
|
||||||
bool
|
|
||||||
depends on ESP32_ENABLE_STACK_BT
|
|
||||||
help
|
|
||||||
The Bluetooth stack uses memory that cannot be used as generic memory anymore. This
|
|
||||||
reserves the space for that within the memory map of the compiled binary.
|
|
||||||
This option is required to enable BT stack.
|
|
||||||
Temporarily, this option is not compatible with WiFi stack.
|
|
||||||
|
|
||||||
config MEMMAP_SMP
|
config MEMMAP_SMP
|
||||||
bool "Reserve memory for two cores"
|
bool "Reserve memory for two cores"
|
||||||
default "y"
|
default "y"
|
||||||
@ -100,15 +64,6 @@ config MEMMAP_SPISRAM
|
|||||||
main memory map. Enable this if you have this hardware and want to use it in the same
|
main memory map. Enable this if you have this hardware and want to use it in the same
|
||||||
way as on-chip RAM.
|
way as on-chip RAM.
|
||||||
|
|
||||||
config WIFI_ENABLED
|
|
||||||
bool
|
|
||||||
default "y"
|
|
||||||
depends on ESP32_ENABLE_STACK_WIFI
|
|
||||||
help
|
|
||||||
This compiles in the low-level WiFi stack.
|
|
||||||
|
|
||||||
Temporarily, this option is not compatible with BT stack.
|
|
||||||
|
|
||||||
config SYSTEM_EVENT_QUEUE_SIZE
|
config SYSTEM_EVENT_QUEUE_SIZE
|
||||||
int "System event queue size"
|
int "System event queue size"
|
||||||
default 32
|
default 32
|
||||||
@ -452,7 +407,6 @@ config ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL
|
|||||||
depends on DOCUMENTATION_FOR_RTC_CNTL
|
depends on DOCUMENTATION_FOR_RTC_CNTL
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
|
||||||
config ESP32_DEEP_SLEEP_WAKEUP_DELAY
|
config ESP32_DEEP_SLEEP_WAKEUP_DELAY
|
||||||
int "Extra delay in deep sleep wake stub (in us)"
|
int "Extra delay in deep sleep wake stub (in us)"
|
||||||
default 0
|
default 0
|
||||||
@ -471,9 +425,26 @@ config ESP32_DEEP_SLEEP_WAKEUP_DELAY
|
|||||||
If you are seeing "flash read err, 1000" message printed to the
|
If you are seeing "flash read err, 1000" message printed to the
|
||||||
console after deep sleep reset, try increasing this value.
|
console after deep sleep reset, try increasing this value.
|
||||||
|
|
||||||
|
endmenu
|
||||||
|
|
||||||
|
menu "WiFi"
|
||||||
|
|
||||||
|
config WIFI_ENABLED
|
||||||
|
bool "Enable WiFi stack"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config SW_COEXIST_ENABLE
|
||||||
|
bool "Software controls WiFi/Bluetooth coexistence"
|
||||||
|
depends on WIFI_ENABLED && BT_ENABLED
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
If enabled, WiFi & Bluetooth coexistence is controlled by software rather than hardware.
|
||||||
|
Recommended for heavy traffic scenarios. Both coexistence configuration options are
|
||||||
|
automatically managed, no user intervention is required.
|
||||||
|
|
||||||
config ESP32_PHY_AUTO_INIT
|
config ESP32_PHY_AUTO_INIT
|
||||||
bool "Initialize PHY in startup code"
|
bool "Initialize PHY in startup code"
|
||||||
|
depends on WIFI_ENABLED
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
If enabled, PHY will be initialized in startup code, before
|
If enabled, PHY will be initialized in startup code, before
|
||||||
@ -488,6 +459,7 @@ config ESP32_PHY_AUTO_INIT
|
|||||||
|
|
||||||
config ESP32_PHY_INIT_DATA_IN_PARTITION
|
config ESP32_PHY_INIT_DATA_IN_PARTITION
|
||||||
bool "Use a partition to store PHY init data"
|
bool "Use a partition to store PHY init data"
|
||||||
|
depends on WIFI_ENABLED
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
If enabled, PHY init data will be loaded from a partition.
|
If enabled, PHY init data will be loaded from a partition.
|
||||||
@ -506,12 +478,14 @@ config ESP32_PHY_MAX_TX_POWER
|
|||||||
int "Max TX power (dBm)"
|
int "Max TX power (dBm)"
|
||||||
range 0 20
|
range 0 20
|
||||||
default 20
|
default 20
|
||||||
|
depends on WIFI_ENABLED
|
||||||
help
|
help
|
||||||
Set maximum transmit power. Actual transmit power for high
|
Set maximum transmit power. Actual transmit power for high
|
||||||
data rates may be lower than this setting.
|
data rates may be lower than this setting.
|
||||||
|
|
||||||
config ESP32_WIFI_RX_BUFFER_NUM
|
config ESP32_WIFI_RX_BUFFER_NUM
|
||||||
int "Max number of WiFi RX buffers"
|
int "Max number of WiFi RX buffers"
|
||||||
|
depends on WIFI_ENABLED
|
||||||
range 2 25
|
range 2 25
|
||||||
default 25
|
default 25
|
||||||
help
|
help
|
||||||
|
@ -192,7 +192,7 @@ void heap_alloc_caps_init() {
|
|||||||
// TODO: this region should be checked, since we don't need to knock out all region finally
|
// TODO: this region should be checked, since we don't need to knock out all region finally
|
||||||
disable_mem_region((void*)0x3ffe0000, (void*)0x3ffe8000); //knock out ROM data region
|
disable_mem_region((void*)0x3ffe0000, (void*)0x3ffe8000); //knock out ROM data region
|
||||||
|
|
||||||
#if CONFIG_MEMMAP_BT
|
#if CONFIG_BT_ENABLED
|
||||||
disable_mem_region((void*)0x3ffb0000, (void*)0x3ffc0000); //knock out BT data region
|
disable_mem_region((void*)0x3ffb0000, (void*)0x3ffc0000); //knock out BT data region
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -5,10 +5,3 @@
|
|||||||
# BT config
|
# BT config
|
||||||
#
|
#
|
||||||
CONFIG_BT_ENABLED=y
|
CONFIG_BT_ENABLED=y
|
||||||
|
|
||||||
#
|
|
||||||
# ESP32-specific config
|
|
||||||
#
|
|
||||||
CONFIG_ESP32_ENABLE_STACK_BT=y
|
|
||||||
# CONFIG_ESP32_ENABLE_STACK_NONE is not set
|
|
||||||
CONFIG_MEMMAP_BT=y
|
|
||||||
|
@ -5,10 +5,3 @@
|
|||||||
# BT config
|
# BT config
|
||||||
#
|
#
|
||||||
CONFIG_BT_ENABLED=y
|
CONFIG_BT_ENABLED=y
|
||||||
|
|
||||||
#
|
|
||||||
# ESP32-specific config
|
|
||||||
#
|
|
||||||
CONFIG_ESP32_ENABLE_STACK_BT=y
|
|
||||||
# CONFIG_ESP32_ENABLE_STACK_NONE is not set
|
|
||||||
CONFIG_MEMMAP_BT=y
|
|
||||||
|
@ -5,10 +5,3 @@
|
|||||||
# BT config
|
# BT config
|
||||||
#
|
#
|
||||||
CONFIG_BT_ENABLED=y
|
CONFIG_BT_ENABLED=y
|
||||||
|
|
||||||
#
|
|
||||||
# ESP32-specific config
|
|
||||||
#
|
|
||||||
CONFIG_ESP32_ENABLE_STACK_BT=y
|
|
||||||
# CONFIG_ESP32_ENABLE_STACK_NONE is not set
|
|
||||||
CONFIG_MEMMAP_BT=y
|
|
||||||
|
@ -5,10 +5,3 @@
|
|||||||
# BT config
|
# BT config
|
||||||
#
|
#
|
||||||
CONFIG_BT_ENABLED=y
|
CONFIG_BT_ENABLED=y
|
||||||
|
|
||||||
#
|
|
||||||
# ESP32-specific config
|
|
||||||
#
|
|
||||||
CONFIG_ESP32_ENABLE_STACK_BT=y
|
|
||||||
# CONFIG_ESP32_ENABLE_STACK_NONE is not set
|
|
||||||
CONFIG_MEMMAP_BT=y
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user