From b175da0edb0ca94321241084a64c19073037ff14 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 25 Sep 2018 21:05:49 +0200 Subject: [PATCH] esp32: update sdkconfig to allow for unrestricted Bluetooth Controller --- port/esp32/template/sdkconfig | 48 ++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/port/esp32/template/sdkconfig b/port/esp32/template/sdkconfig index dcc135e6f..d18b142aa 100644 --- a/port/esp32/template/sdkconfig +++ b/port/esp32/template/sdkconfig @@ -83,9 +83,8 @@ CONFIG_PARTITION_TABLE_SINGLE_APP=y CONFIG_PARTITION_TABLE_TWO_OTA= CONFIG_PARTITION_TABLE_CUSTOM= CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" -CONFIG_PARTITION_TABLE_CUSTOM_APP_BIN_OFFSET=0x10000 CONFIG_PARTITION_TABLE_FILENAME="partitions_singleapp.csv" -CONFIG_APP_OFFSET=0x10000 +CONFIG_PARTITION_TABLE_OFFSET=0x8000 CONFIG_PARTITION_TABLE_MD5=y # @@ -121,6 +120,19 @@ CONFIG_AWS_IOT_SDK= # Bluetooth # CONFIG_BT_ENABLED=y + +# +# Bluetooth controller +# +CONFIG_BTDM_CONTROLLER_MODE_BLE_ONLY= +CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY= +CONFIG_BTDM_CONTROLLER_MODE_BTDM=y +CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN=9 +CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN=7 +CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN=2 +CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN_EFF=9 +CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_ACL_CONN_EFF=7 +CONFIG_BTDM_CONTROLLER_BR_EDR_MAX_SYNC_CONN_EFF=2 CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE=0 CONFIG_BTDM_CONTROLLER_HCI_MODE_VHCI=y CONFIG_BTDM_CONTROLLER_HCI_MODE_UART_H4= @@ -129,8 +141,13 @@ CONFIG_BTDM_CONTROLLER_HCI_MODE_UART_H4= # MODEM SLEEP Options # CONFIG_BTDM_CONTROLLER_MODEM_SLEEP= +CONFIG_BLE_SCAN_DUPLICATE= CONFIG_BLUEDROID_ENABLED= -CONFIG_BT_RESERVE_DRAM=0x10000 +CONFIG_BT_RESERVE_DRAM=0xdb5c + +# +# Driver configurations +# # # ADC configuration @@ -138,6 +155,14 @@ CONFIG_BT_RESERVE_DRAM=0x10000 CONFIG_ADC_FORCE_XPD_FSM= CONFIG_ADC2_DISABLE_DAC=y +# +# SPI configuration +# +CONFIG_SPI_MASTER_IN_IRAM= +CONFIG_SPI_MASTER_ISR_IN_IRAM=y +CONFIG_SPI_SLAVE_IN_IRAM= +CONFIG_SPI_SLAVE_ISR_IN_IRAM=y + # # ESP32-specific # @@ -206,6 +231,8 @@ CONFIG_ESP32_TIME_SYSCALL_USE_FRC1= CONFIG_ESP32_TIME_SYSCALL_USE_NONE= CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC=y CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL= +CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_OSC= +CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_8MD256= CONFIG_ESP32_RTC_CLK_CAL_CYCLES=1024 CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=0 CONFIG_ESP32_XTAL_FREQ_40= @@ -339,6 +366,12 @@ CONFIG_HEAP_POISONING_LIGHT= CONFIG_HEAP_POISONING_COMPREHENSIVE= CONFIG_HEAP_TRACING= +# +# HTTP Server +# +CONFIG_HTTPD_MAX_REQ_HDR_LEN=512 +CONFIG_HTTPD_MAX_URI_LEN=512 + # # libsodium # @@ -421,6 +454,7 @@ CONFIG_LWIP_MAX_RAW_PCBS=16 # # mbedTLS # +CONFIG_MBEDTLS_PLATFORM_MEMORY= CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=16384 CONFIG_MBEDTLS_DEBUG= CONFIG_MBEDTLS_HARDWARE_AES=y @@ -496,6 +530,11 @@ CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED=y CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED=y CONFIG_MBEDTLS_ECP_NIST_OPTIM=y +# +# mDNS +# +CONFIG_MDNS_MAX_SERVICES=10 + # # OpenSSL # @@ -551,9 +590,10 @@ CONFIG_SPIFFS_CHECK_DBG= CONFIG_SPIFFS_TEST_VISUALISATION= # -# tcpip adapter +# TCP/IP Adapter # CONFIG_IP_LOST_TIMER_INTERVAL=120 +CONFIG_TCPIP_LWIP=y # # Virtual file system