diff options
-rw-r--r-- | ports/esp32/boards/GENERIC/mpconfigboard.cmake | 6 | ||||
-rw-r--r-- | ports/esp32/boards/GENERIC_D2WD/mpconfigboard.cmake | 1 | ||||
-rw-r--r-- | ports/esp32/boards/GENERIC_OTA/mpconfigboard.cmake | 1 | ||||
-rw-r--r-- | ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake | 1 | ||||
-rw-r--r-- | ports/esp32/boards/TINYPICO/mpconfigboard.cmake | 1 | ||||
-rw-r--r-- | ports/esp32/boards/sdkconfig.base | 4 | ||||
-rw-r--r-- | ports/esp32/main/CMakeLists.txt | 1 | ||||
-rw-r--r-- | ports/esp32/mpconfigport.h | 6 |
8 files changed, 20 insertions, 1 deletions
diff --git a/ports/esp32/boards/GENERIC/mpconfigboard.cmake b/ports/esp32/boards/GENERIC/mpconfigboard.cmake index 8fea52455..f69b05f47 100644 --- a/ports/esp32/boards/GENERIC/mpconfigboard.cmake +++ b/ports/esp32/boards/GENERIC/mpconfigboard.cmake @@ -1,2 +1,6 @@ -set(SDKCONFIG_DEFAULTS boards/sdkconfig.base) +set(SDKCONFIG_DEFAULTS + boards/sdkconfig.base + boards/sdkconfig.ble +) + set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py) diff --git a/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.cmake b/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.cmake index 4e23666f1..686c78df9 100644 --- a/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.cmake +++ b/ports/esp32/boards/GENERIC_D2WD/mpconfigboard.cmake @@ -1,5 +1,6 @@ set(SDKCONFIG_DEFAULTS boards/sdkconfig.base + boards/sdkconfig.ble boards/GENERIC_D2WD/sdkconfig.board ) diff --git a/ports/esp32/boards/GENERIC_OTA/mpconfigboard.cmake b/ports/esp32/boards/GENERIC_OTA/mpconfigboard.cmake index 7b1e14600..ca552d470 100644 --- a/ports/esp32/boards/GENERIC_OTA/mpconfigboard.cmake +++ b/ports/esp32/boards/GENERIC_OTA/mpconfigboard.cmake @@ -1,5 +1,6 @@ set(SDKCONFIG_DEFAULTS boards/sdkconfig.base + boards/sdkconfig.ble boards/GENERIC_OTA/sdkconfig.board ) diff --git a/ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake b/ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake index bb441d9eb..2128edb59 100644 --- a/ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake +++ b/ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake @@ -1,5 +1,6 @@ set(SDKCONFIG_DEFAULTS boards/sdkconfig.base + boards/sdkconfig.ble boards/sdkconfig.spiram ) diff --git a/ports/esp32/boards/TINYPICO/mpconfigboard.cmake b/ports/esp32/boards/TINYPICO/mpconfigboard.cmake index 990e3e035..5c31f5c60 100644 --- a/ports/esp32/boards/TINYPICO/mpconfigboard.cmake +++ b/ports/esp32/boards/TINYPICO/mpconfigboard.cmake @@ -1,5 +1,6 @@ set(SDKCONFIG_DEFAULTS boards/sdkconfig.base + boards/sdkconfig.ble boards/sdkconfig.240mhz boards/sdkconfig.spiram boards/TINYPICO/sdkconfig.board diff --git a/ports/esp32/boards/sdkconfig.base b/ports/esp32/boards/sdkconfig.base index e326831a1..c84dd606b 100644 --- a/ports/esp32/boards/sdkconfig.base +++ b/ports/esp32/boards/sdkconfig.base @@ -45,3 +45,7 @@ CONFIG_ESP32_ULP_COPROC_ENABLED=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" + +# To reduce iRAM usage +CONFIG_ESP32_WIFI_IRAM_OPT=n +CONFIG_ESP32_WIFI_RX_IRAM_OPT=n diff --git a/ports/esp32/main/CMakeLists.txt b/ports/esp32/main/CMakeLists.txt index a46e0112c..eedf3ae9a 100644 --- a/ports/esp32/main/CMakeLists.txt +++ b/ports/esp32/main/CMakeLists.txt @@ -78,6 +78,7 @@ set(MICROPY_SOURCE_QSTR set(IDF_COMPONENTS app_update bootloader_support + bt driver esp32 esp_common diff --git a/ports/esp32/mpconfigport.h b/ports/esp32/mpconfigport.h index 81f8297c5..34be9405e 100644 --- a/ports/esp32/mpconfigport.h +++ b/ports/esp32/mpconfigport.h @@ -126,6 +126,12 @@ #define MICROPY_PY_THREAD_GIL_VM_DIVISOR (32) // extended modules +#ifndef MICROPY_PY_BLUETOOTH +#define MICROPY_PY_BLUETOOTH (1) +#define MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE (1) +#define MICROPY_BLUETOOTH_NIMBLE (1) +#define MICROPY_BLUETOOTH_NIMBLE_BINDINGS_ONLY (1) +#endif #define MICROPY_PY_UASYNCIO (1) #define MICROPY_PY_UCTYPES (1) #define MICROPY_PY_UZLIB (1) |